Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2005 14:36:17 +0200
From:      guru@Sisis.de (Matthias Apitz)
To:        freebsd-questions@freebsd.org
Subject:   Re: spanish chars in FreeBSD commands
Message-ID:  <20050917123617.GA3366@revolucion.Sisis.de>
In-Reply-To: <20050914093131.GA4376@revolucion.Sisis.de>
References:  <20050914093131.GA4376@revolucion.Sisis.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 0000000  341 351 355 363 361 301 311 315 323 241 277  \n                
> 0000014
> $ more espanol
> <E1><E9><ED><F3><F1><C1><C9><CD><D3><A1><BF>
> $ 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050917123617.GA3366>