Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2017 21:30:27 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        =?UTF-8?Q?Marko_Cupa=c4=87?= <marko.cupac@mimar.rs>, ports@freebsd.org
Subject:   Re: tomcat8 and UTF-8 filenames
Message-ID:  <5A27FF03.4020701@grosbein.net>
In-Reply-To: <20171206150054.5727905b@efreet-freebsd.kappastar.com>
References:  <20171206150054.5727905b@efreet-freebsd.kappastar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06.12.2017 21:00, Marko Cupać wrote:
> Hi,
> 
> I am running airsonic:
> [https://github.com/airsonic/airsonic]
> 
> ...as tomcat8 application. In order for it to read UTF-8 filenames
> correctly, I have added "export LANG=en_US.UTF-8" directly to
> rc.d/tomcat8 startup script, as instructed here:
> http://thomas.quinot.org/labnotes/blog/2015/07/30/subsonic/
> 
> This works, but I'm getting warnings in my daily security output
> regarding package with mismatched checksum:
> 
> Checking for packages with mismatched checksums:
> tomcat8-8.0.46: /usr/local/etc/rc.d/tomcat8
> 
> I also keep forgetting about this on tomcat8 updates, so tomcat8's rc
> startup script gets overwritten.
> 
> Is there a better way to make tomcat8 applications read UTF-8
> filenames? Should I change login.conf LANG for root class? Or something
> else?
> 
> Thank you in advance,
> 

Just use /etc/rc.conf:

tomcat8_env="LANG=en_US.UTF-8 TZ=Europe/Rome"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5A27FF03.4020701>