Results 1 to 2 of 2

Thread: Can't get "locate" work properly, need your expert help.

  1. #1
    Just burned their ISO
    Join Date
    Oct 2012
    Posts
    2

    Default Can't get "locate" work properly, need your expert help.

    Hi.

    I having some issues with getting locales work properly, feels like i've read every post about the issue and done everything, but still no luck.

    Im trying to accomplish to get sv_SE working.

    If I run command date, the respons will come like this:
    Code:
    root@nas:~# date
    sön 21 okt 2012 19.22.00 CEST
    If I create a directory with included it will look by the following when I list it looks like this:
    Code:
    drwx------ 30 root  root      4096 2012-10-21 19:22 .
    drwxr-xr-x 26 root  root      4096 2012-10-21 00:02 ..
    drwxr-xr-x  2 root  root      4096 2012-10-21 19:22 t?st
    What i've done:
    1. Installed language-pack-sv (with apt-get install)
    2. Edited /etc/default/locale to look like:
      Code:
      LANG="sv_SE.UTF-8"
    3. Edited /etc/environment to look like:
      Code:
      PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
      
      LC_CTYPE="sv_SE.UTF-8"
      LANG="sv_SE.UTF-8"
      LANGUAGE="sv_SE.UTF-8"
      LC_ALL="sv_SE.UTF-8"
    4. Edited /var/lib/locales/supported.d/local to look like:
      Code:
      sv_SE.UTF-8 UTF-8
      en_US.UTF-8 UTF-8
    5. Edited /var/lib/locales/supported.d/sv
      Code:
      sv_SE.UTF-8 UTF-8
      sv_FI.UTF-8 UTF-8


    If I do a printout of locale:
    Code:
    root@nas:/var/lib/locales/supported.d# locale
    LANG=sv_SE.UTF-8
    LANGUAGE=sv_SE.UTF-8
    LC_CTYPE="sv_SE.UTF-8"
    LC_NUMERIC="sv_SE.UTF-8"
    LC_TIME="sv_SE.UTF-8"
    LC_COLLATE="sv_SE.UTF-8"
    LC_MONETARY="sv_SE.UTF-8"
    LC_MESSAGES="sv_SE.UTF-8"
    LC_PAPER="sv_SE.UTF-8"
    LC_NAME="sv_SE.UTF-8"
    LC_ADDRESS="sv_SE.UTF-8"
    LC_TELEPHONE="sv_SE.UTF-8"
    LC_MEASUREMENT="sv_SE.UTF-8"
    LC_IDENTIFICATION="sv_SE.UTF-8"
    LC_ALL=sv_SE.UTF-8
    If i do a printout of locale -a:
    Code:
    root@nas:/var/lib/locales/supported.d# locale -a
    C
    en_AG
    en_AU.utf8
    en_BW.utf8
    en_CA.utf8
    en_DK.utf8
    en_GB.utf8
    en_HK.utf8
    en_IE.utf8
    en_IN
    en_NG
    en_NZ.utf8
    en_PH.utf8
    en_SG.utf8
    en_US.utf8
    en_ZA.utf8
    en_ZW.utf8
    POSIX
    sv_FI.utf8
    sv_SE.utf8
    dpkg-reconfigure locales look like this:
    Code:
    root@nas:~# dpkg-reconfigure locales
    Generating locales...
      en_AG.UTF-8... up-to-date
      en_AU.UTF-8... up-to-date
      en_BW.UTF-8... up-to-date
      en_CA.UTF-8... up-to-date
      en_DK.UTF-8... up-to-date
      en_GB.UTF-8... up-to-date
      en_HK.UTF-8... up-to-date
      en_IE.UTF-8... up-to-date
      en_IN.UTF-8... up-to-date
      en_NG.UTF-8... up-to-date
      en_NZ.UTF-8... up-to-date
      en_PH.UTF-8... up-to-date
      en_SG.UTF-8... up-to-date
      en_US.UTF-8... up-to-date
      en_ZA.UTF-8... up-to-date
      en_ZM.UTF-8... kan inte öppna lokaldefinitionsfil "en_ZM": Filen eller katalogen finns inte
    failed
      en_ZW.UTF-8... up-to-date
      sv_FI.UTF-8... up-to-date
      sv_SE.UTF-8... up-to-date
    Generation complete.
    What did I miss?

    Full Regards

    //nucce

  2. #2
    Just burned their ISO
    Join Date
    Oct 2012
    Posts
    2

    Default Re: Can't get "locate" work properly, need your expert help.

    I solved it myself.

    The issue was in Putty. :-) Only needed to change to UTF-8 from Latin-1 to get it working.

    //nucce

Similar Threads

  1. Replies: 0
    Last Post: 03-03-2012, 07:57 PM
  2. Replies: 0
    Last Post: 09-22-2011, 08:56 PM
  3. Replies: 4
    Last Post: 02-24-2011, 04:52 PM
  4. exe "pack" (need expert opinions)
    By Focaccia in forum Experts Forum
    Replies: 0
    Last Post: 08-17-2010, 01:08 AM
  5. Replies: 17
    Last Post: 10-04-2007, 03:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •