tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Umlaut FAQ on www.NetBSD.org out of date



hi, all

> http://www.NetBSD.org/docs/misc/#locales
>
> is out of date.

ok, ftp://ftp2.fr.netbsd.org/pub/NetBSD/arch/i386/french-1.4/
has already disappeared.
i'll delete this part from htdoc later, thanks!

> Is there any difference between
>  LC_CTYPE=en_US.ISO8859-1
>  LC_CTYPE=de_DE.ISO8859-1
>  LC_CTYPE=de_DE.ISO8859-15

first, between en_US.ISO8859-1 and de_DE.ISO8859-1,
language and territory is differ(=cultural difference).
if you speak german and lived in Germany, use de_DE.*.

for example, LC_MONETARY's currency symbol is
dollar sign in United States and euro sign in Deutschland(after Euronize).
# as far as LC_CTYPE, they made from same mklocale(1) srcfile
# (src/share/locale/ctype/en_US.ISO_8859-1.src) now.

second, between de_DE.ISO8859-1 and de_DE.ISO8859-15,
coded character set is differ.

see following pdf.
+ ISO8859-1 http://www.itscj.ipsj.or.jp/ISO-IR/100.pdf
+ ISO8859-15 http://www.itscj.ipsj.or.jp/ISO-IR/203.pdf

ISO8859-15 have euro sign at 0xA4, but ISO8859-1 don't.

# ISO-IR-204 is a variant of ISO-8859-1, it has euro sign.
#  http://www.itscj.ipsj.or.jp/ISO-IR/204.pdf
# but NetBSD doesn't supports it.


> I couldn't see any Euro symbol, neither on the console nor in an xterm.
> Do I need any special fonts?

you can't use ISO8859-15'ed wscons(4) at this point.
so that you can't see euro sign, sorry.

because available encoding is limited iso(ISO8859-1) and
ibm(???CP850???) only (uwscons patch supports more encoding),
see manual wsfontload(8).

xterm(uxterm) need option ``-lc)'' or ``-en'' i think.
# sorry, i always use CSI xterm(by openi18n.org) or kterm.
# so that i'm not familiar with uxterm after XFree86 4.3
try following instruction:

$ LC_CTYPE=de_DE.ISO8859-15 xterm -lc
or
$ xterm -en iso8859-15

if you see uxterm + luit complain about ownership as following message:
``Warning: could not change ownership of tty -- pyt is insecure.''
luit should be setuid root in old BSDPTY environment,
but NetBSD doesn't due to security risk.
if you want avoid this instantly, ``chmod u+s /usr/X11R6/bin/luit'' by root
at own your risk.

more detailed information, see
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=26923

and more, uxterm requires -*-iso8859-15 bdf/pcf font.
try ``xlsfonts | grep -c iso8859-1''.
if it is zero, you have to install ISO8859-15 fonts
or add fontpath in your /etc/X11/XF86Config(or xorg.conf).
and edit your /usr/X11R6/lib/X11/app-defalults/XTerm or ~/.Xdefaults
to use them.

if you use Truetype font for uxterm(Xft extension, fontconfig + freetype)
check your font  that ``LC_CTPE=de_DE.ISO8859-15 fc-match <fontname
you specified>'' reports.
maybe these TTF doesn't include euro sign,
pkgsrc/fonts/fontforge may helps you.

my environment -- NetBSD 4.99.49 + XFree86 4.5.0(X11_TYPE=native),
both ``xterm -fa vera -en iso8859-15'' and ``LC_CTYPE=de_DE.ISO8859-15
xterm -lc -fa vera''
show euro symbol by ``printf \\a4''.


very truly yours.
--
Takehiko NOZAKI <tnozaki%NetBSD.org@localhost>


Home | Main Index | Thread Index | Old Index