[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185924: locale-gen breaks with POSIXLY_CORRECT

Package: locales
Version: 2.3.1-15

Running locale-gen with POSIXLY_CORRECT=1 in the environment produces an
error. Full output is shown below:

$ POSIXLY_CORRECT=1 local-gen
Generating locales...
  en_US.ISO-8859-1...Try `localedef --help' or `localedef --usage' for
more information.

The problem is the call to localedef in the script:

localedef -i $input -c -f $charset $locale -A /etc/locale.alias;

In POSIX option parsing, no options (like -A) can come after a
a non-option argument (like $locale). The solution is to change it to:

localedef -i $input -c -f $charset -A /etc/locale.alias $locale


Reply to: