Re: problemas con acentos
El mar, 30-04-2002 a las 00:07, Aritz Beraza escribió:
> Salu2 lista:
>
> Instalando el paquete user-euro-es para Woody, y poder por fin poner el
> dichoso simbolito, fastidié la configuracion de los locales. Tras leerme
> el spanish-hownto, euro-howto y no se que mas, he conseguido que en bash
> se muuestren los caracteres sin problema (menos el euro), pero el
> problema esta en X. En la consola de X, los mismos programas que en bash
> mostraban bien los acentos no lo hacen (joe mutt less...), y sin embargo
> en los terminales de x si que puedo escribir acentos y ñ, pero en los
> programas no aparecen (salen simbolos raros).
>
> Alguien podria echarme una mano?
Mira a ver cómo tienes tu /etc/environment. En este fichero se fijan las
variables de entorno para las X. Fíjate en LANG y LC-ALL. El mío está
así:
PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
PRINTER=homero
MANPATH=/usr/local/man:/usr/man/es:/usr/man:/usr/X11R6/man:/usr/share/man
MM_CHARSET=ISO-8859-1
LANG=es_ES@euro
LC_ALL=es_ES@euro
export PATH PRINTER MANPATH MM_CHARSET LANG LC_ALL
Con esto deberías tener el euro, siempre y cuando tengas el
/etc/locale.gen correctamente configurado y hayas ejecutado como root
locale-gen. ¡Ah! y hayas elegido en tu entorno (gnome o KDE) una fuente
iso-8859-15. Por lo que concierne a /etc/profile, tengo:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
PRINTER=homero
MANPATH=/usr/local/man:/usr/man/es:/usr/man:/usr/X11R6/man:/usr/share/man
MM_CHARSET=ISO-8859-1
LANG=es_ES@euro
LC_ALL=es_ES@euro
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:';
export PATH PS1 PRINTER MANPATH MM_CHARSET LANG LC_ALL LS_COLORS
# alias globales
alias ls='ls -N --color=auto'
alias less='less -R'
alias mv='mv -i'
umask 002
# para que "suelte" un fortune cookie en cada terminal abierta.
echo
fortune -a
echo
Para tener euro en consola, añade las siguientes líneas al
/etc/console-tools/config:
SCREEN_FONT_vc1=lat0-sun16
APP_CHARSET_MAP_vc1=iso15
SCREEN_FONT_vc2=lat0-sun16
APP_CHARSET_MAP_vc2=iso15
SCREEN_FONT_vc3=lat0-sun16
APP_CHARSET_MAP_vc3=iso15
SCREEN_FONT_vc4=lat0-sun16
APP_CHARSET_MAP_vc4=iso15
SCREEN_FONT_vc5=lat0-sun16
APP_CHARSET_MAP_vc5=iso15
SCREEN_FONT_vc6=lat0-sun16
APP_CHARSET_MAP_vc6=iso15
Finalmente, en las xterm basta con elegir una fuente con soporte euro,
por ejemplo:
XTerm*font:-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-15
añade esta línea a /etc/X11/app-defaults/XTerm.
Saludos,
--
================================================================================
JUAN CARLOS AMENGUAL Nothing I am, nothing I dream, nothing is new
UNIVERSIDAD JAUME I nothing I think or believe in or say
DEPARTAMENTO DE INFORMÁTICA nothing is true
CAMPUS DE RIU SEC, EDIFICIO TI It used to be so easy, I never even
tried
CASTELLON, 12071. SPAIN. It used to be so easy ...
Phone: +34 964 728361 but the last day of summer never felt so cold
Fax: +34 964 728435 the last day of summer never felt so old.
e-mail: jcamen@inf.uji.es
Robert Smith (The Cure)
- "The Last Day of Summer", Bloodflowers, 2000, Fiction Rec. -
================================================================================
Reply to: