View previous topic :: View next topic |
Author |
Message |
shadov n00b
Joined: 24 Feb 2003 Posts: 9 Location: Finland
|
Posted: Mon Mar 31, 2003 3:29 pm Post subject: Scandinavian fonts in shell (POSIX Locale) |
|
|
Hi!
I'm trying to get scandinavian fonts (ä,ö,å) working in shell. I've got most of it configured right. Keyboard layout is fine and fonts show up correctly when I type. However when I do cat or ls, all scandinavian fonts display as '?'.
I can fix this problem with:
$ export LANG="fi_FI@euro"
but then my shell starts to speak Finnish.. e.g. it says "Muistialueen ylitys" when it should say "Segmentation fault". IMHO there is no point of UI speaking any other language than English. It only make things look stupid and harder to understand.
So how can I turn it off without turning off scandinavian font support? |
|
Back to top |
|
|
radTube n00b
Joined: 05 Mar 2003 Posts: 24 Location: Finland
|
Posted: Mon Mar 31, 2003 7:16 pm Post subject: |
|
|
I've got exactly the same problem. Any help appreciated. |
|
Back to top |
|
|
Juki n00b
Joined: 07 Dec 2002 Posts: 19 Location: Finland
|
Posted: Mon Mar 31, 2003 9:17 pm Post subject: |
|
|
put these lines into /etc/rc.conf:
KEYMAP="fi-latin1 euro2"
CONSOLEFONT="lat0-16"
export LANG="C"
export LC_CTYPE="fi_FI@euro"
Just tested, all scandinavian big characters are odd. Everything all works great, even euro symbol. I prefer English language settings but keyboard is Finnish. |
|
Back to top |
|
|
radTube n00b
Joined: 05 Mar 2003 Posts: 24 Location: Finland
|
Posted: Tue Apr 01, 2003 7:58 am Post subject: |
|
|
That didn't help me. ls still gives me '?' instead of 'ä' or 'ö'. Konqueror shows these characters just fine though.
Should I have CONSOLETRANSLATION set? |
|
Back to top |
|
|
cederberg Guru
Joined: 23 Jan 2003 Posts: 349 Location: Stockholm / Sweden
|
Posted: Tue Apr 01, 2003 12:05 pm Post subject: |
|
|
I also had some trouble with this. There is an excellent thread in the Swedish section on this. I have it working on my machine in this way:
Code: | # In /etc/rc.conf:
KEYMAP="se-latin1 euro2"
CONSOLEFONT="iso01.14"
# In /etc/profile:
export LANG=en_US
export LC_CTYPE=sv_SE |
Note that I use a different console font that the previous poster. I do not have CONSOLETRANSLATION set. (And I preferred to set LANG et al in /etc/profile.) |
|
Back to top |
|
|
C.M Tux's lil' helper
Joined: 14 Mar 2003 Posts: 132 Location: Göteborg - Sweden
|
Posted: Tue Apr 01, 2003 12:23 pm Post subject: |
|
|
I use
Code: |
# In /etc/rc.conf:
KEYMAP="se-latin1"
CONSOLEFONT="lat9v-14"
# In /etc/profile:
export LC_ALL=en_US
export LANG=en_US
|
Works good for me, åäöß and all other I've seen except the degree sign. |
|
Back to top |
|
|
Juki n00b
Joined: 07 Dec 2002 Posts: 19 Location: Finland
|
Posted: Tue Apr 01, 2003 5:49 pm Post subject: |
|
|
Done some changes.
Quote: |
#/etc/rc.conf
#CONSOLETRANSLATION="8859-15_to_uni"
CONSOLEFONT="iso01.14"
|
I had LC_CTYPE and LANG in two places, /etc/rc.conf and /etc/profile. I removed them from /etc/rc.conf. |
|
Back to top |
|
|
Juki n00b
Joined: 07 Dec 2002 Posts: 19 Location: Finland
|
Posted: Tue Apr 01, 2003 7:26 pm Post subject: |
|
|
Hope this is my last config. I'm happier with this setting in /etc/rc.conf
CONSOLEFONT="lat9-16" |
|
Back to top |
|
|
Grom33 n00b
Joined: 05 Sep 2005 Posts: 9
|
Posted: Mon Jan 23, 2006 5:35 pm Post subject: Norwegian character- set, problem with locales |
|
|
Hi.
I've tried searching through these forums, but the
information I have found haven't helped me.
I don't have any problems with the locales in KDE
or any apps except with Java- applications and in
the main console. Characters like "æ" and "å" just
won't show up correctly.
I followed a guide on the web and figured out that
/etc/env.d/02locale had to be created by the user..
so here's what I got:
Code: |
erik@barbar ~ $ cat /etc/env.d/02locale
LANG="no_NO/ISO-8859-15"
LANGUAGE="no_NO/ISO-8859-15"
LC_ALL="no_NO/ISO-8859-15"
|
I thought this would work, but:
Code: |
erik@barbar ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No
such file or directory
locale: Cannot set LC_MESSAGES to default locale:
No such file or directory
locale: Cannot set LC_ALL to default locale: No
such file or directory
LANG=no_NO/ISO-8859-15
LC_CTYPE="no_NO/ISO-8859-15"
LC_NUMERIC="no_NO/ISO-8859-15"
LC_TIME="no_NO/ISO-8859-15"
LC_COLLATE="no_NO/ISO-8859-15"
LC_MONETARY="no_NO/ISO-8859-15"
LC_MESSAGES="no_NO/ISO-8859-15"
LC_PAPER="no_NO/ISO-8859-15"
LC_NAME="no_NO/ISO-8859-15"
LC_ADDRESS="no_NO/ISO-8859-15"
LC_TELEPHONE="no_NO/ISO-8859-15"
LC_MEASUREMENT="no_NO/ISO-8859-15"
LC_IDENTIFICATION="no_NO/ISO-8859-15"
LC_ALL=no_NO/ISO-8859-15
|
When I try locale -a :
Code: |
erik@barbar ~ $ locale -a
C
POSIX
de_DE
de_DE@euro
en_HK
en_PH
en_US
en_US.utf8
es_MX
fa_IR
fr_FR
fr_FR@euro
it_IT
ja_JP
ja_JP.eucjp
ja_JP.utf8
|
So I don't even got the desired locale available?
Could anyone please help me out with this, as you
might have figured, I'm kinda stuck. |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Jan 23, 2006 5:59 pm Post subject: |
|
|
merged above post here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
Grom33 n00b
Joined: 05 Sep 2005 Posts: 9
|
Posted: Tue Jan 24, 2006 5:47 pm Post subject: |
|
|
This post helped me out getting characters like "æ", "ø" and "å" to work in the main console.
My Java- programs are still messed up, though..
I'm using Eclipse with sun-jdk-1.5.
When I try
Code: |
public class Karakterer {
public static void main(String[] args) {
System.out.println( "æøå" );
}
}
|
Anyone out there able to help me out?
the output is this;
|
|
Back to top |
|
|
|