Le 09-08-14 à 09:26, Timo Hoepfner a écrit :

Hi,

I'm using a native library (pdflib) which comes with it's own java wrappers. To get this library to accept unicode file names, the LANG environment variable (as in System.getEnv, not Sytem.getProperty) needs to be set to something like en_US.UTF-8. When I fire up Terminal, the environment variable is correctly set, but when running from within eclipse, it isn't. Now there is a way to set the environment via ~/.MacOSX/environment.plist, which should work during development, but not for deployment later, as the appserver user doesn't actually log in and also has no home dir (*).

It do have a home, it's /var/empty, but it doesn't have write access to his home, and the shell is set to /usr/bin/false


Sooooo, would adding LSEnvironment to the Info.plist help? I guess in the WO case it's interpreted from within java (=> no cookie). Any other ideas? I'm almost about to write a JNA wrapper for setting the environment programatically...

Timo

(*) at least I didn't find it. NetInfoManager is gone in 10.5,

It's replaced by dscl. Most of the time, it use the same commands as niutil, example :

        dscl . -list /Users

Directory Utility is almost useless. To my surprise, the server Workgroup Manger app works fine with Leopard client, but it doesn't even list the special users...

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

This email sent to [email protected]


-------------------------------------------------------
Pascal Robert

Come to WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://www.macti.ca | http://www.linkedin.com/in/macti

Skype | Twitter | AIM/iChat : MacTICanada

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to