Package: libgettext-ruby1.8 Version: 1.91.0-1 Severity: normal locale/base.rb:32 > # Gets the system locale using setlocale and nl_langinfo. > # * Returns the system locale (Locale::Object). > def locale_from_env > locale = nil > # At least one environment valiables should be set on *nix system. > [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"]].each do |loc| > if loc != nil and loc.size > 0 > locale = Locale::Object.new(loc) > locale.charset ||= get_charset(locale) > break > end > end > locale > end
But Locale::Object _only_ parses the string and the nl_langinfo function is never called. For consequencies of this, see bug #489864. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (200, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.26-rc9-lis-00008-g02aed29 (SMP w/2 CPU cores) Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2) Shell: /bin/sh linked to /bin/bash Versions of packages libgettext-ruby1.8 depends on: ii irb1.8 1.8.7.22-1 Interactive Ruby (for Ruby 1.8) libgettext-ruby1.8 recommends no packages. -- no debconf information -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]