LANG property in startup script in standalone version
Hi, Does anyone know why we have the following LANG property defined in our startup scripts: #!/bin/sh export LANG=fr_FR.ISO8859-1 JETTY_HOME=. JETTY_PORT=8080 JAVA_OPTS=-Xmx300m java $JAVA_OPTS -Dfile.encoding=iso-8859-1 -Djetty.port=$JETTY_PORT - Djetty.home=$JETTY_HOME -jar $JETTY_HOME/start.jar I think this is bad as it's french and I don't think we should set it for the user. That said, if it's there its probably because it was required in the past, hence my question here. To summarize: anyone sees any issue if I remove that "export LANG" line? Thanks -Vincent
Vincent Massol a écrit :
Hi,
Hi Vincent,
Does anyone know why we have the following LANG property defined in our startup scripts:
#!/bin/sh
export LANG=fr_FR.ISO8859-1
I think this is bad as it's french and I don't think we should set it for the user.
That said, if it's there its probably because it was required in the past, hence my question here.
indeed, according to this old documentation : <http://old.xwiki.org/xwiki/bin/view/AdminGuide/Linux+Tomcat+MySQL> But since it is not relevant anymore, it can be removed safely I think. Seb.
On Apr 4, 2007, at 9:05 PM, Sébastien Gaïde wrote:
Vincent Massol a écrit :
Hi,
Hi Vincent,
Does anyone know why we have the following LANG property defined in our startup scripts: #!/bin/sh export LANG=fr_FR.ISO8859-1
I think this is bad as it's french and I don't think we should set it for the user. That said, if it's there its probably because it was required in the past, hence my question here.
indeed, according to this old documentation :
<http://old.xwiki.org/xwiki/bin/view/AdminGuide/Linux+Tomcat+MySQL>
But since it is not relevant anymore, it can be removed safely I think.
Sebastien, do you know why it's not relevant anymore? Also do you mean I can safely remove both the LANG property and the - Dfile.encoding=iso-8859-1 one? Thanks -Vincent
Vincent Massol a écrit :
Sebastien, do you know why it's not relevant anymore?
Also do you mean I can safely remove both the LANG property and the -Dfile.encoding=iso-8859-1 one?
I will have to check, I thought that this issue (accentuated characters in attached files) was solved a long time ago, but I may be wrong. We may also need to ask the user during the installation which encoding he/she wants to use, and set the correct values in the start scripts. S.
Hi, Actually, in start_xwiki.sh this is not needed at all, because we already use -Dfile.encoding. If it were missing, then the jvm would infer the right encoding using the LANG system property. This means that we can't get rid of both right now. We should be able to do this once http://jira.xwiki.org/jira/browse/XWIKI-94 is fixed. Created jira issue: http://jira.xwiki.org/jira/browse/XWIKI-1608 On 4/5/07, Sébastien Gaïde <sgaide@gmail.com> wrote:
Vincent Massol a écrit :
Sebastien, do you know why it's not relevant anymore?
Also do you mean I can safely remove both the LANG property and the -Dfile.encoding=iso-8859-1 one?
I will have to check, I thought that this issue (accentuated characters in attached files) was solved a long time ago, but I may be wrong.
We may also need to ask the user during the installation which encoding he/she wants to use, and set the correct values in the start scripts.
S.
Sergiu -- http://purl.org/net/sergiu
Hi Community, in the start scripts of the standalone version 1.4.1 still remains LANG property defined for french: LANG=fr_FR.ISO8859-1 java $JAVA_OPTS -Dfile.encoding=iso-8859-1 ... Therefore the same question once more: Can I just remove LANG property from the start scripts or shoud I set LANG property on en_EN or respectively de_DE? We are working in german-speaking environment. Best Regards, Alla Sergiu Dumitriu wrote:
Hi,
Actually, in start_xwiki.sh this is not needed at all, because we already use -Dfile.encoding. If it were missing, then the jvm would infer the right encoding using the LANG system property.
On 4/5/07, Sébastien Gaïde <sgaide@gmail.com> wrote:
Vincent Massol a écrit :
Sebastien, do you know why it's not relevant anymore?
Also do you mean I can safely remove both the LANG property and the -Dfile.encoding=iso-8859-1 one?
I will have to check, I thought that this issue (accentuated characters in attached files) was solved a long time ago, but I may be wrong.
Sergiu --
-- View this message in context: http://www.nabble.com/LANG-property-in-startup-script-in-standalone-version-... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (4)
-
adoro -
Sergiu Dumitriu -
Sébastien Gaïde -
Vincent Massol