Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Nov 2003 19:55:11 +0100
From:      Joan Picanyol i Puig <lists-freebsd-questions@biaix.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: login.conf and accents weirdness
Message-ID:  <20031101185511.GA87892@grummit.biaix.org>
In-Reply-To: <20031101181524.GA5859@watt.intra.caraldi.com>
References:  <20031021211437.GA9314@grummit.biaix.org> <20031101111745.GB1831@watt.intra.caraldi.com> <20031101142614.GA49458@grummit.biaix.org> <20031101145857.GA3970@watt.intra.caraldi.com> <20031101164333.GB49458@grummit.biaix.org> <20031101181524.GA5859@watt.intra.caraldi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

* Jean-Baptiste Quenot <jb.quenot@caraldi.com> [20031101 19:09]:
> * Joan Picanyol i Puig:
> > * Jean-Baptiste Quenot <jb.quenot@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

--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=environment

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

--J/dobhs11T7y2rNN--



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