Skip to contentSkip to conversation

tty1 and italian charset ...

DISCUSSION Emiliano 'AlberT' Gabrielli 2 participants 5 messages Jul 26, 2004 – Jul 30, 2004 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm not sure not to be OT, if so plz apologize me...

I'm fighting against a problem with "òàèìù" characters on my laptop since I switched to 2.6.0 ... The problem persists nowaday with 2.67 (various recompilations, with or without nvidia module loaded, and so on ...)

I already used "loadkeys it" and it seems to success, but tty1 still doesn't prints "òàèìù" characters.

The very strange thing, that let me suppose some kerenl-related issue, is that _every_ other tty is working fine, as it does every xterm session...

I'mwriteing now becouse just iesterday I installed a new server and I got the same problem here.

My laptop is running a Debian SID, the new server is running a Debian Sarge.

On both machines I'm using 2.6.7 (both debian binaries and a self compiled vanilla) with udev, sysfs and hotplug... my console-tools version is 0.2.3

Any suggestion ???

thank you in advance

Signature · 4 lines
<?php echo '       Emiliano `AlberT` Gabrielli       ',"\n",
           '  E-Mail: AlberT_AT_SuperAlberT_it  ',"\n",
           '  Web:    http://SuperAlberT.it  ',"\n",
'  IRC:    #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>
#1 lore raw
Followup to:  <[email protected]>
By author:    "Emiliano 'AlberT' Gabrielli" <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 4 lines

I already used "loadkeys it" and it seems to success, but tty1 still doesn't prints "òàÚìù" characters.

Sounds like you're trying to print Latin-1 on an UTF-8 console or vice versa.

	echo -ne '\\033%G'	-- Enable UTF-8
	echo -ne '\\033%@'	-- Disable UTF-8

	-hpa
#2 lore raw
Quoted 2 lines · you
Quoted 2 lines

I already used "loadkeys it" and it seems to success, but tty1 still doesn't prints "òàÚìù" characters.

uh ??

no sorry, you are not seeing the characters I'm trying to type... my charset is setted (on system-wide basis) to it_IT@EURO, no UTF-8 ... btw, tryng to use UTF-8, iso-15, iso-1 and so on does not affect the problem.

The characters I'm tring to print are the "italian single letter" that on a us keyboard I would type as " a ", " e ", " e' ", " i ", "o ", " u` " ...

I repeat that the strange thing is that _only_ tty1 as this strange beahviour .. not dipending on the user logged in (infact I have this problem already at login time, when I have to type the login name... If I'd have a login name containing one of this characters I could not login from tty1)...

Is tty1 somehow special in respect to other ttys ???

Quoted 8 lines

Sounds like you're trying to print Latin-1 on an UTF-8 console or vice versa.

        echo -ne '\\033%G'      -- Enable UTF-8
        echo -ne '\\033%@'      -- Disable UTF-8

        -hpa

Signature · 4 lines
<?php echo '       Emiliano `AlberT` Gabrielli       ',"\n",
           '  E-Mail: AlberT_AT_SuperAlberT_it  ',"\n",
           '  Web:    http://SuperAlberT.it  ',"\n",
'  IRC:    #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 10 lines · you
Quoted 7 lines
Quoted 7 lines

Sounds like you're trying to print Latin-1 on an UTF-8 console or vice versa.

        echo -ne '\\033%G'      -- Enable UTF-8
        echo -ne '\\033%@'      -- Disable UTF-8

        -hpa

(If it is not that, then investigate your font, etc. This is probably not a kernel matter.)

yep, I tried them ... without the double backslash :-)

they just turn UTF-8 on/off ... no change about my problem.
What problem in my font ?? why should my font works wrong _only_ on tty1 ???

is there a place in kernel where I could set a wrong font for console, and a reason explaining why this affects only tty1 ?

Signature · 4 lines
<?php echo '       Emiliano `AlberT` Gabrielli       ',"\n",
           '  E-Mail: AlberT_AT_SuperAlberT_it  ',"\n",
           '  Web:    http://SuperAlberT.it  ',"\n",
'  IRC:    #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>
#5 lore raw
Quoted 12 lines · Emiliano 'AlberT' Gabrielli
Quoted 10 lines · you
Quoted 7 lines
Quoted 7 lines

Sounds like you're trying to print Latin-1 on an UTF-8 console or vice versa.

        echo -ne '\\033%G'      -- Enable UTF-8
        echo -ne '\\033%@'      -- Disable UTF-8

        -hpa

(If it is not that, then investigate your font, etc. This is probably not a kernel matter.)

Quoted 8 lines

yep, I tried them ... without the double backslash :-)

they just turn UTF-8 on/off ... no change about my problem. What problem in my font ?? why should my font works wrong _only_ on tty1 ???

is there a place in kernel where I could set a wrong font for console, and a reason explaining why this affects only tty1 ?

thanx to Andries suggestion I forced SCREEN_FONT=lat0-sun16 in /etc/console-tools/config ... now it works fine :-)

Signature · 4 lines
<?php echo '       Emiliano `AlberT` Gabrielli       ',"\n",
           '  E-Mail: AlberT_AT_SuperAlberT_it  ',"\n",
           '  Web:    http://SuperAlberT.it  ',"\n",
'  IRC:    #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>