Re: spanish chars in FreeBSD commands

2005-09-17 Thread Matthias Apitz
El día miércoles, septiembre 14, 2005 a las 11:31:31 +0200, Matthias Apitz 
escribió:

...
 they work in FreeBSD with Xorg as well but some FreeBSD commands
 don't show the chars very well:
 
 $ cat espanol
 áéíóñÁÉÍÓ¡¿
 $ od -c espanol
 000  341 351 355 363 361 301 311 315 323 241 277  \n
 014
 $ more espanol
 E1E9EDF3F1C1C9CDD3A1BF
 $ vi espanol
 \xe1\xe9\xed\xf3\xf1\xc1\xc9\xcd\xd3\xa1\xbf
 
 and the 'sh' ignores them at all; I monitored with truss(1) that
 the shell is reading them from STDIN but the chars are ignored, at
 least not echoed. Any hints?

it does work with the right LANG, for example:

$ LANG=es_ES.ISO8859-1 sh
$ echo ¿qué tal?
¿qué tal?
$ 

matthias
-- 
Matthias Apitz / Sisis Informationssysteme GmbH
Gruenwalder Weg 28g / D-82041 Oberhaching
Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211
http://www.sisis.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


spanish chars in FreeBSD commands

2005-09-14 Thread Matthias Apitz

Hi,
I speak and write Spanish and for this I need support of
the Spanish special chars in FreeBSD; for this in SuSE Linux
I've used some xmodmap's to get the chars by pressing, for
example, the Windows-key + 'a' to get the char 'á'; the commands
are:

xmodmap -e keycode 0x73 =  Mode_switch
xmodmap -e keycode 0x39 =  n N ntilde Ntilde
xmodmap -e keycode 0x1a =  e E eacute Eacute
xmodmap -e keycode 0x26 =  a A aacute Aacute
xmodmap -e keycode 0x1f =  i I iacute Iacute
xmodmap -e keycode 0x1e =  u U uacute Uacute
xmodmap -e keycode 0x20 =  o O oacute Oacute
xmodmap -e keycode 0x14 =  questiondown question backslash ssharp
xmodmap -e keycode 0x0a =  1 exclam exclamdown onesuperior

they work in FreeBSD with Xorg as well but some FreeBSD commands
don't show the chars very well:

$ cat espanol
áéíóñÁÉÍÓ¡¿
$ od -c espanol
000  341 351 355 363 361 301 311 315 323 241 277  \n
014
$ more espanol
E1E9EDF3F1C1C9CDD3A1BF
$ vi espanol
\xe1\xe9\xed\xf3\xf1\xc1\xc9\xcd\xd3\xa1\xbf

and the 'sh' ignores them at all; I monitored with truss(1) that
the shell is reading them from STDIN but the chars are ignored, at
least not echoed. Any hints?

matthias

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
Gruenwalder Weg 28g / D-82041 Oberhaching
Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211
http://www.sisis.de/~guru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]