Control: tags -1 + moreinfo
On Wed, 12 Mar 2014 21:42:55 +0100 Petr Vorel wrote: > Package: apt-listbugs > Version: 0.1.12 > Severity: normal > Tags: patch > > Dear Maintainer, Hello Petr, thanks for your bug report and for the effort you put in preparing a patch! However, I am not sure I understand your configuration. I admit that I am not a locale variable expert, but I am under the impression that your configuration might fail to meet your needs. > > with certain config apt-listbugs leads to broken charset in exported xhtml > file. > Config is: > export LC_ALL=C LANGUAGE=cs_CZ.UTF-8 Could you please show the output of the "locale" command on your system (with the user account you are referring to)? What is the intended effect of your configuration? It seems to me that you are using the LANGUAGE variable in a wrong way. Please see http://www.gnu.org/software/gettext/manual/gettext.html#Setting-the-POSIX-Locale http://www.gnu.org/software/gettext/manual/gettext.html#Locale-Environment-Variables http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable The last subsection states, in part: | Note: The variable LANGUAGE is ignored if the locale is set to āCā. | In other words, you have to first enable localization, by setting | LANG (or LC_ALL) to a value other than āCā, before you can use a | language priority list through the LANGUAGE variable. > > This results that chosen po file is po/cs.po, but charset in header is > "ANSI_X3.4-1968" > (i.e. C). I am not 100 % sure, but I am under the impression that this is not far from the correct behavior, taking the above quoted note into account... > > I'm not an ruby expert, but with this config using Locale.current.charset > seems to help: > ruby -rgettext -e 'p Locale.charset' > "ANSI_X3.4-1968" > ruby -rgettext -e 'p Locale.current.charset' > "UTF-8" I may test your patch (later), but, first, I have to understand whether your configuration is the right one for your needs. Please reply to my questions. Thanks. -- http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt New GnuPG key, see the transition document! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
pgpoQayAaO7dk.pgp
Description: PGP signature