Changing the process locale

Discussion in 'Java' started by kiran.dpatil@gmail.com, Jan 30, 2008.

  1. Guest

    Hi,

    I ran into issues while dealing with locale sepcific strings in C
    application and solution was to call setLocale(LC_ALL,"") at the start
    of the application before performing any locale related operations.

    I'm facing same issue with JVM, where we load C libraries though JNI
    and C code fails to function proeprly if we do not call
    setLocale(LC_ALL, "") when we load the library. I tried calling
    Locale.setDefault() in Java main, but that didn't help, is there any
    way to set the locale in Java which will make sure native JVM's locale
    is set properly too?


    Thanks,
    -Kiran
     
    , Jan 30, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Maurice Hulsman
    Replies:
    1
    Views:
    1,892
    Guus Bosman
    Jul 25, 2004
  2. Replies:
    4
    Views:
    1,029
  3. Gabriel Genellina
    Replies:
    0
    Views:
    724
    Gabriel Genellina
    Feb 18, 2009
  4. zade
    Replies:
    1
    Views:
    627
    James Kanze
    Mar 5, 2010
  5. Sibylle Koczian
    Replies:
    2
    Views:
    1,147
    Sibylle Koczian
    Nov 20, 2010
Loading...

Share This Page