Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123825 - latin2 Czech locale broken
Summary: latin2 Czech locale broken
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 07:14 UTC by Michal Suchanek
Modified: 2006-05-08 09:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2006-02-23 07:14:07 UTC
With a locale that uses non-iso1 encoding but does not include it in the name (ie cs_CZ uses ISO 8859-2) luit does not set the encoding properly.
LC_ALL=cs_CZ LANG=cs_CZ luit
does not work, it probably sets encoding to ISO 8859-1

I have to set the encoding manually.
LC_ALL=cs_CZ LANG=cs_CZ luit -encoding 'ISO 8859-2'

It should be possible to determine from the locale somehow. At the very least, the encoding is specified in /etc/locale.build.

[ebuild   R   ] x11-apps/luit-1.0.1  USE="debug"

Portage 2.1_pre4-r1 (hardened/x86/2.6, gcc-3.4.4-vanilla, glibc-2.3.5-r2, 2.6.15-gentoo-r4 i686)
=================================================================
System uname: 2.6.15-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks maketest nostrip sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="cs_CZ"
LC_ALL="cs_CZ"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X accessibility aim alsa apache2 berkdb bzip2 crypt cups debug dga dlloader dmx doc dri examples fbcon foomaticdb fpx gif gimpprint glitz gpm gs hardened icq icu ipv6 irc jabber java jbig jpeg kerberos krb4 lcms ldap libclamav mmx mng mono mozilla mpeg msn nas nls nsplugin offensive opengl pam pic png ppds readline samba sasl spell sse ssl svg tcpd threads tiff truetype truetype-fonts unicode userlocales wmf x86 xml2 xv zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard input_devices_kbd input_devices_joystick kernel_linux userland_GNU video_cards_mga video_cards_radeon video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS
Comment 1 Joshua Baergen (RETIRED) gentoo-dev 2006-02-27 20:17:39 UTC
What version of X are you using?
Comment 2 Michal Suchanek 2006-02-28 05:10:33 UTC
of course, xorg 7.0 (-r1)
Otherwise luit would be part of xorg.

On the machine with xorg 6.8.2 it does not work either. 
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-01 01:12:59 UTC
This is properly an upstream bug. Please file it in the xorg product at bugs.freedesktop.org and post the URL here.

However, don't expect to see much action on the bug unless you also post a patch to fix the issue. The last time anybody touched luit was before the split from XFree86.
Comment 4 Michal Suchanek 2006-03-01 03:55:12 UTC
I tried on Debian,and there it works (with some xorg 6.8 or 6.9) so they must have a fix for this.
Comment 5 Michal Suchanek 2006-05-08 09:18:58 UTC
I guess that the problem is in fact in the locale. I cannot even get less to display latin2 characters. It says that a file encoded in ISO-8859-2 is binary.
Comment 6 Michal Suchanek 2006-05-08 09:42:28 UTC
I found that generating the locale manually works. Probably a typo in locale.build

Cannot reproduce anymore.