Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7077183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:23:27+00:00 2026-05-28T06:23:27+00:00

My web app runs fine after I changed the system locale however whenever files

  • 0

My web app runs fine after I changed the system locale however whenever files are generated (java.text.numberformat.getCurrencyInstance() ) the currency shown in the files are in $ as opposed to € which is the currency for the system locale. The web application doesn’t have a problem displaying the right currency though. The system is a remote ubuntu 10.10 server.
I have exhhausted every system locale setting possibility and after multiple restarts I am still nowhere close to the answer.
[Edit]
I have tried the following:

https://askubuntu.com/questions/89976/how-to-change-the-default-locale-in-ubuntu-10-10-server
when the problem initially appeared which solved the display issues.

I have purged all other locales except french using localepurge.

I have edited the /etc/default/locale to contain the following:

LANG=fr_FR.UTF-8
LANGUAGE=fr_FR
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:23:28+00:00Added an answer on May 28, 2026 at 6:23 am

    Even if your remote system have locale set to X, and you connect from remote host with locale set to Y your locale (Y) can be magically transferred to remote system for the current session (like TERM is).

    see SendEnv LANG LC_* in man ssh_config.

    So, your remote java app, may get different locale settings depending of how you start it.
    If it gets started as a system service after reboot on host A, it will get it’s natural locale settings on host A (LANG=”C”), but if you login from another host B via ssh, with different locale settings (LANG=”pl_PL” on host B) the java app started from that ssh session on host A may get (depending on ssh configuration) locale settings from host B.

     _______________                         ______________
    [ remote host A ]                       [ local host B ]
    [ LANG="C"      ]  - - - - [ssh]- - - - [ LANG="pl_PL" ]
    [ java app      ]                       [ xterm        ]
    [_______________]                       [______________]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My web app compiles and runs fine on my machine. However when I publish
I have a C# Web app that runs perfectly fine in VS2010, but when
My ASP.NET web app runs fine under IIS 7.5. But I want to make
My web app runs on .Net 3.5, all of the dates are saved on
This a bit of strange one.... We have an internal web app that runs
I have a web database app that runs in IE7+ (customer requirement) It is
In my mind, a web app something that runs continuously; therefore, I'm confused by
I have a web app that runs under Tomcat on Windows XP that needs
after deploying my web app to a new server using the add web setup
I have a web app that spawns off a script that runs a Nutch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.