You are not logged in.
I have Swedish locale, and special characters "åäö" shows in file
names in the terminal, but only if they were named in Arch. If not,
they'll show up weird on Arch. Vice versa, any file name created on
any other operating system, (Debian, SuSE, Windows, etc.) shows up
weird under Arch.
For instance, "ä" in a file name created on another OS, shows as:
$'\344' in Arch. Really annoying.
Feels like I have something not set right in my rc.
This is my locale:
locale
LANG=sv_SE.utf8
LC_CTYPE="sv_SE.utf8"
LC_NUMERIC="sv_SE.utf8"
LC_TIME="sv_SE.utf8"
LC_COLLATE="sv_SE.utf8"
LC_MONETARY="sv_SE.utf8"
LC_MESSAGES="sv_SE.utf8"
LC_PAPER="sv_SE.utf8"
LC_NAME="sv_SE.utf8"
LC_ADDRESS="sv_SE.utf8"
LC_TELEPHONE="sv_SE.utf8"
LC_MEASUREMENT="sv_SE.utf8"
LC_IDENTIFICATION="sv_SE.utf8"
LC_ALL=My /etc/rc.conf
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Stockholm"
#KEYMAP="sv-lat6" #tired this, does naught
KEYMAP="sv-latin1"
CONSOLEFONT="ter-i16n"
CONSOLEMAP=
LOCALE="sv_SE.utf8"
DAEMON_LOCALE="yes"
USECOLOR="yes"Are there any kind IKEA loving meatball eating Swede out there who
care to share their (working) rc.conf?
Offline
Looks like you have some typos there:
My rc.
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Stockholm"
KEYMAP="se-lat6"
CONSOLEFONT=
CONSOLEMAP=
LOCALE=sv_SE.UTF-8
DAEMON_LOCALE="yes"
USECOLOR="yes"Offline
Thanks.
Commented out my rc.conf and tried yours (copy-paste), but it did not work.
Still same behavior, plus "äö" in tty are now Danish.
Looking at a file I made in Arch "arch_test_å_ä_ö" (with your rc.conf) under another OS, and it shows as "atch_test_Ã¥_ä_ö".
Sigh.
Offline
Still no solution to this annoying problem.
I just don't get it. My initial assumption that the problem is in my Arch (configuration) must be valid, since SuSE, Debian, and Windows all seems to agree on how to display these characters.
Offline
Try changing your locale to sv_SE.ISO-8859-1 (uncomment the corresponding line in /etc/locale.gen and run locale-gen first). I would argue that utf-8 is preferred, though, and that you should try to change the other systems.
Offline
Looks like you have some typos there:
+1
My output of locale ends on "UTF-8", not utf8.
Make sure that:
1) In your rc.conf it says LOCALE="sv_SE.UTF-8" (lassekongo doesn't have the "...", but that's probably not a problem).
2) The line sv_SE.UTF-8 UTF-8 in your /etc/locale.gen is uncommented.
3) That you run locale-gen.
Then reboot (probably not necessary), and check if things are shown correctly in the shell (ctrl+alt+F1) and in X.
Offline
Are you using open source video drivers?
Because $'\344' looks similar to this (and also from a VirtualBox guest). Check out the screenshot.
Last edited by DSpider (2012-06-20 12:50:22)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Thank you all for the replies, I really appreciate it.
I've done as Terminator suggested, and am using lassekongo83's
rc.conf, but with "..." on my locale, see below.
My /locale.gen looks like so (as it did before):
sv_SE.UTF-8 UTF-8
sv_SE ISO-8859-1everything else is commented out.
locale output
LANG=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=my rc.conf
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Stockholm"
KEYMAP="se-lat6"
CONSOLEFONT=
CONSOLEMAP=
LOCALE=sv_SE.UTF-8
DAEMON_LOCALE="yes"
USECOLOR="yes"I've done a lot of testing now and I find:
1. File names created in Debian and Arch are compatible with each
other, i.e. I see the file names OK on both. (I have a dual boot
with Debian).
2. When using an external USB (FAT-)disk in Debian it shows all
file names on the drive OK. Arch does not. If I copy a file from the
external drive while in Debian to my /home, then logging in to Arch it
shows the same file that Debian copied in there correctly.
So it would seem that my locale is correct on all computers,
barring from the oiocharset being used when mounting external
drives. Seems like Debian has no problem reading external drives
and copying file names with åäö (created under winXP) to my
computer, and in the process making them UTF8 I assume, since
Arch then can show these files correctly.
So I made the following test:
-Create a file in Debian with name: debian_test_å_ä_ö_ŝ
-Create a file in Arch with name: arch_test_å_ä_ö_ŝ
-Create a file in SuSE with name: suse_test_å_ä_ö_ŝ
and copied the file to my USB-stick from the corresponding OS.
Note that I threw in the s-hat: "ŝ" in the file names, since
this character does not exist in the latin1 charset!
Below shows the output of ls, of my FAT-disk, mounted with either
default mounting options, or with -oiocharset=utf8 or iso8859-1
on different operating systems.
Arch: default mounting options:
arch_å_ä_ö_ŝ
debian_?_?_?_?
suse_?_?_?_?Arch: -oiocharset=utf8:
arch_Ã¥_ä_ö_Å?
debian_å_ä_ö_ŝ
suse_å_ä_ö_ŝArch: -oiocharset=iso8859-1:
arch_å_ä_ö_ŝ
debian_?_?_?_?
suse_?_?_?_?SuSE: default mounting options:
arch_Ã¥_ä_ö_Å?
debian_å_ä_ö_ŝ
suse_å_ä_ö_ŝSuSE: -oiocharset=utf8:
arch_Ã¥_ä_ö_Å?
debian_å_ä_ö_ŝ
suse_å_ä_ö_ŝSuSE: -oiocharset=iso8859-1:
arch_å_ä_ö_ŝ
debian_?_?_?_?
suse_?_?_?_?Debian: default mounting options:
arch_Ã¥_ä_ö_Å
suse_å_ä_ö_ŝ
debian_å_ä_ö_ŝDebian: -oiocharset=utf8:
arch_Ã¥_ä_ö_Å
debian_å_ä_ö_ŝ
suse_å_ä_ö_ŝDebian: -oiocharset=iso8859-1:
arch_å_ä_ö_ŝ
debian_?_?_?_?
suse_?_?_?_?My conclusion/guess is that Debian and SuSE use -oiocharset=utf8
by default, but Arch use oiocharset=iso8859-1 by default. Now question
is why and how do I change this?
Offline