Subject: | Examples does not work |
Hi,
I noticed that the examples does not work and I use the modules for the i18n of a web application. After a while I noticed that Debian sets $LANGUAGE by default and libc ignores setlocale if it detects a set environment variable. The only clean way is nl_putenv or delete $ENV{LANGUAGE}.
I found the problem by reading the description of some libc stuff. It is perhaps a good idea to add a fat warning that the setlocale examples and your own code only work if the environment is erased.
Can you please add such a comment to the examples of Locale::Messages? It was fairly uncommon to me that the environment ($LANGUAGE) overrides the functional interface (setlocale). If you want that I fix the pod by myself and send it to you then please write a notice.
Michael