File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Locale in Solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Locale in Solaris" Watch "Locale in Solaris" New topic
Author

Locale in Solaris

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

Does anyone know exactly how the java system property user.country is determined on Solaris 9?
I've got a really weird problem. If my admin does an "su - my_user_name" and runs a Java program, it will not have user.country set. This causes problems with my Weblogic server as locale-specific things like currency symbols are not resolved.
I thought this was influenced by the "LC_" environment variables. I have them when I log in as my_user_name but admin doesn't have them when he su's in. He figured out that doing "su my_user_name" keeps his environment but that didn't seem to fix the user.country Java property.
Any ideas?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Locale in Solaris