login.conf and accents weirdness

Joan Picanyol i Puig lists-freebsd-questions at biaix.org
Sat Nov 1 11:00:44 PST 2003


* Jean-Baptiste Quenot <jb.quenot at caraldi.com> [20031101 19:09]:
> * Joan Picanyol i Puig:
> > * Jean-Baptiste Quenot <jb.quenot at caraldi.com> [20031101 15:53]:
> >
> > > * Joan Picanyol i Puig:
> > > > I have these lines in /etc/login.conf
> > > >
> > > > :setenv=LC_CTYPE=ISO8859-15,LANG=ca_ES.ISO8859-15: \
> > > > :lang=ca_ES.ISO-8859-15:\
> > > > :charset=ISO8859-15:\
> > > LC_CTYPE is wrong.
> > Yep, I  changed it to  both ca_ES.ISO8859-15 and  es_ES.ISO8859-15 and
> > made no difference.
> Try:
>                                                                                                         
> LC_CTYPE=ca_ES.ISO8859-15 more mail.test
>                                                                                                         
> It works  for me, the  accentuated chars show  up in xterm...
It doesn't for me, nor in console or under X. I'm pasting underneath
what I see from the console (excerpt from the test file):

Eco,     eco,    eco,  co,  co..co...co...co...o.o.o.o oo.oo.oo.
Hi ha alg<FA> a l'altre banda o estic al 'planeta dels simis'? sol amb
el
floquet, i la seva aixella tuberculosa...
Un dia d'aquests de segur que em trobar<E9> amb el que qued<E0> de la
sagrada
famil<ED>a; (a la terra prohibida de la Catag<F2>nia, vora l'oce<E0>;
diuen que
s'hi

I wonder how you see it...

> could you dump the result  of « env »  to check your settings?
attached

> BTW  you can check whether a given locale is available by looking at
> /usr/share/locale.
(19:47:33 <~>) 0 $ ls /usr/share/locale/ca_ES.ISO*
/usr/share/locale/ca_ES.ISO8859-1:
LC_COLLATE  LC_MONETARY LC_NUMERIC  LC_TIME
/usr/share/locale/ca_ES.ISO8859-15:
LC_COLLATE  LC_MONETARY LC_TIME
/usr/share/locale/ca_ES.ISO_8859-1:
LC_COLLATE  LC_MONETARY LC_NUMERIC  LC_TIME
/usr/share/locale/ca_ES.ISO_8859-15:
LC_COLLATE  LC_MONETARY LC_TIME

Beware, these are local modifications and might work. However, replacing
ca for es doesn't work either (and es_ES comes with the system)

> Also, when modifying login.conf, don't forget to logout completely
> from X *and* console.
I assume setting variables shoud work (from my reading of login.conf,
all it does in this context is set up the environment...)

tks
-- 
pica
-------------- next part --------------
BASH=/usr/local/bin/bash
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i386-portbld-freebsd4.7")
BASH_VERSION='2.05b.0(1)-release'
BLOCKSIZE=K
CLICOLOR=
COLUMNS=80
DIRSTACK=()
EDITOR=vim
EUID=1000
GROUPS=()
HISTFILE=/home/joan/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/joan
HOSTNAME=grummit.biaix.org
HOSTTYPE=i386
IFS=$' \t\n'
INFOPATH=/usr/share/info:/usr/local/info
LANG=ca_ES.ISO8859-15
LC_CTYPE=ca_ES.ISO8859-15
LINES=25
LOGNAME=joan
MACHTYPE=i386-portbld-freebsd4.7
MAIL=/home/joan/Maildir/
MAILCHECK=60
MANPATH=/usr/share/man:/usr/local/man:/var/qmail/man/
MM_CHARSET=ISO8859-15
OPTERR=1
OPTIND=1
OSTYPE=freebsd4.7
PAGER=less
PATH=/command:/bin:/usr/bin:/usr/local/bin:/command:/usr/X11R6/bin:/usr/games:/home/joan/bin:/usr/sbin:/usr/local/sbin:/sbin
PIPESTATUS=([0]="0")
PPID=272
PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ '
PS2='> '
PS4='+ '
PWD=/home/joan
SHELL=/usr/local/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
TERM=cons25l1
UID=1000
USER=joan
_=LC_CTYPE


More information about the freebsd-questions mailing list