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

Bug#481565: locales: locale-gen fails when a file named UTF-8 is in current directory.



Package: locales
Version: 2.7-11
Severity: normal


Hi,

locale-gen fails when a file named UTF-8 is in current directory.

$ sudo locale-gen
Generating locales (this might take a while)...
  en_US.UTF-8... done
  ja_JP.EUC-JP... done
  ja_JP.UTF-8... done
Generation complete.

$ echo foobar > UTF-8

$ ls
UTF-8

$ sudo locale-gen
Generating locales (this might take a while)...
  en_US.UTF-8...UTF-8:1: syntax error in prolog: invalid definition
UTF-8: premature end of file
character map `UTF-8' is not ASCII compatible, locale not ISO C compliant
/usr/share/i18n/locales/en_US:45: LC_MONETARY: unknown character in field `int_curr_symbol'
/usr/share/i18n/locales/en_US:46: LC_MONETARY: unknown character in field `currency_symbol'
/usr/share/i18n/locales/en_US:47: LC_MONETARY: unknown character in field `mon_decimal_point'
/usr/share/i18n/locales/en_US:48: LC_MONETARY: unknown character in field `mon_thousands_sep'
/usr/share/i18n/locales/en_US:51: LC_MONETARY: unknown character in field `negative_sign'
/usr/share/i18n/locales/en_US:66: LC_NUMERIC: unknown character in field `decimal_point'
/usr/share/i18n/locales/en_US:67: LC_NUMERIC: unknown character in field `thousands_sep'
.....snip....

$ rm UTF-8

$ sudo locale-gen
Generating locales (this might take a while)...
  en_US.UTF-8... done
  ja_JP.EUC-JP... done
  ja_JP.UTF-8... done
Generation complete.


Thanks,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-1-686 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages locales depends on:
ii  debconf [debconf-2.0]         1.5.21     Debian configuration management sy
ii  libc6 [glibc-2.7-1]           2.7-11     GNU C Library: Shared libraries

locales recommends no packages.

-- debconf information:
* locales/default_environment_locale: None
* locales/locales_to_be_generated: en_US.UTF-8 UTF-8, ja_JP.EUC-JP EUC-JP, ja_JP.UTF-8 UTF-8



Reply to: