This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 8935
    
    9

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]
 
jQuery in Action, 2nd edition
 
subject: Locale in Solaris