Ooops, I screwed up my locale

Discussion in 'Acer Aspire One' started by stuartmitch, Sep 3, 2008.

  1. stuartmitch

    stuartmitch

    Joined:
    Jul 25, 2008
    Messages:
    24
    Likes Received:
    0
    I was following some of Macles' excellent instructions on how to free up memory space and seem to have reset my locale to US. This is a pain because dates are displaying as mm/dd/yy in the email client.

    Can someone help me with an idiot's guide to getting it back to UK?

    Eternally grateful... unless my wife kills me for messing up her toy first!
     
    stuartmitch, Sep 3, 2008
    #1
  2. stuartmitch

    scottro

    Joined:
    Aug 31, 2008
    Messages:
    347
    Likes Received:
    0
    In Fedora it's in /etc/sysconfig/i18n
    I see that in Linpus lite, there's an i18n and an i18n.en

    (In my case, both are set to US, which makes sense as that's where I live.)
     
    scottro, Sep 4, 2008
    #2
  3. stuartmitch

    stuartmitch

    Joined:
    Jul 25, 2008
    Messages:
    24
    Likes Received:
    0
    Ummm... thanks Scott, but how (since where you live I will use the word "dummy"!) do I effect the change to UK?

    Thanks.
     
    stuartmitch, Sep 4, 2008
    #3
  4. stuartmitch

    stuartmitch

    Joined:
    Jul 25, 2008
    Messages:
    24
    Likes Received:
    0
    OK, so I know it is bad form to reply to yourself... but I have been doing some research and (now I have the AA1 back) been trying some stuff out. I opened up a terminal window and (with the help of Google, *again*!) entered the following commands:

    LANG=en_UK.utf-8
    LC_ALL=en_UK.utf-8

    ... and (using the "locale" command) I was able to verify this made the change I needed. I did a reboot, however, and the AA1 has defaulted back to US.

    Back to the previous post and digging up knowledge of UNIX from... er... 1991... (no really!) led me to the files that Scott references. I opened up il8n and made the changes only when I tried to save my changes I got the following error:

    "il8n" E212: Can't open file for writing

    I am really stuck now... but I am trying!! HELP?

    Thanks.
     
    stuartmitch, Sep 4, 2008
    #4
  5. stuartmitch

    Raido

    Joined:
    Jul 19, 2008
    Messages:
    114
    Likes Received:
    0
    Maybe doing the 'oobe.log' trick will work? (Worked here for resetting language settings)
     
    Raido, Sep 4, 2008
    #5
  6. stuartmitch

    stuartmitch

    Joined:
    Jul 25, 2008
    Messages:
    24
    Likes Received:
    0
    Oooh.... I didn't know the old oobe.log trick. Gave it a go but it didn't fix the issue, the settings you put in include timezone but not localisation info... :(
     
    stuartmitch, Sep 4, 2008
    #6
  7. stuartmitch

    sideways

    Joined:
    Aug 21, 2008
    Messages:
    172
    Likes Received:
    0
    reset the locale files back to what they were:

    Code:
    sudo rpm -e --nodeps --justdb glibc
    sudo yum install glibc
    (delete /etc/localtime and copy /etc/localtime.rpmnew in its place)

    and then maybe try macles space saving tips more carefully.
     
    sideways, Sep 4, 2008
    #7
  8. stuartmitch

    stuartmitch

    Joined:
    Jul 25, 2008
    Messages:
    24
    Likes Received:
    0
    Hi Sideways,

    Point well taken. :oops: Tried your code bits (which seemed to work OK downloading a new glibc) but am still stuck with a US locale. I did a "rm localtime" but got a Permission denied error when trying to "mv localtime.rpmnew localtime".

    Just about to try a reboot to see what happens.. currently locale is still saying US.

    [EDIT] AA1 reboots OK but is still US. :( SORRY for being so stupid.
     
    stuartmitch, Sep 4, 2008
    #8
  9. stuartmitch

    sideways

    Joined:
    Aug 21, 2008
    Messages:
    172
    Likes Received:
    0
    you need to use sudo in front of your commands when deleting /etc/localtime and replacing it with localtime.rpmnew

    You also need to use sudo when editing the /etc/sysconfig/i18n file,
    Code:
    sudo mouspad /etc/sysconfig/i18n
    and edit it to say

    LANG=en_GB.UTF-8
    LANGUAGE=en_GB.UTF-8

    then reboot again
     
    sideways, Sep 5, 2008
    #9
  10. stuartmitch

    stuartmitch

    Joined:
    Jul 25, 2008
    Messages:
    24
    Likes Received:
    0
    Thanks again Sideways. Just checking in to report I am OK now... not even the typo in "mouspad" confused me this time. All is now good.

    Cheers!
     
    stuartmitch, Sep 6, 2008
    #10
  11. stuartmitch

    ndirons

    Joined:
    Dec 28, 2008
    Messages:
    52
    Likes Received:
    0
    Location:
    Australia
    How do I set the locale to Australia (ie dd/mm/yyyy, $ - not pound or euro)?
     
    ndirons, Jan 27, 2009
    #11
Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.