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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Locale in Solaris" Watch "Locale in Solaris" New topic

Locale in Solaris

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

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
Similar Threads
Locale issue...
locale in Unix
Change JVM locale before Start up
ClassNotFound when everything is in place
Can't find property file when using ResourceBundle.getBundle