When starting resin 3.1.x it will not obey environment variables such as LANG and LC_* when setting up the locale under whish it runs. Currently the only usable way i've found so far is to hack /etc/init.d/resin and fix the cmdline variable to prefix the environment variables when bootstrapping resin: local cmdline="LANG=nb_NO.utf8 LC_MESSAGES=en_US.utf8 ${JAVA_HOME}/bin/java -jar /usr/share/resin/lib/resin.jar [etc]" running export of these variables in the shell before starting resin has no effect, and setting them via env.d ditto. This causes a lot of issues with WTF8 apps. -A Reproducible: Always Steps to Reproduce: 1. Amend /etc/init.d/resin as above fixes the issue Actual Results: Without amending any WTF8 enabled apps will print WTF8 characters as double byte latin1 charachters on webpages. Expected Results: Expected would be for resin's init script to honor LANG/LC_* as given in the environment when starting resin and passing these to resin.
Could you try resin-3.2.1 ?
No, the problem is we run several apps that are certified with resin 3.1.x, so we cant more. If there is any difference in the startup scripts I would try a 3.2.x release, and then if that makes a difference, assist in backporting whatever needs to be done to the 3.1.x init scripts.
Do you have LANG and LC_MESSAGES set in /etc/env.d/* files, or in .bash* for root user?
They are unset, and are being set manually by "export LANG" and "export LC_*" prior to attempting to start resin by "/etc/init.d/resin start". -A
Note that /etc/init.d/resin uses `su -', please set locales information globally (in /etc/env.d/*).
OK, will test this shortly. -A
Alexander: has the issue been resolved with setting locales globally?
Alexander: please reopen if the issue persists.