posted 19 years ago
Hi
Thanks for your valuable suggestion.
My problem is
I am using JNI for writing logs.
When the locale is set to ja_JP.eucJP, JNI call for writing a syserrlog is printing some japanese characters instead of "Sep" in Timestamp.
If I run a standalone C program to print the date, it is printing in english though the locale is set to ja_JP.eucJP.
When you call the same C function to print the date through JNI, it is printing some junk chars for "Sep".So i want to change the locale "C" from my java program.
I tried Locale.setDefaultLocale(Locale.English)...but still my JNI call is printing some junk chars for "Sep". So i tried by changing the LC_ALL from java program with exec().
Java Code:
C Code: