Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207147 - x11-apps/luit-1.0.2 defect
Summary: x11-apps/luit-1.0.2 defect
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-23 12:13 UTC by Imre Péntek
Modified: 2008-01-23 16:27 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 Imre Péntek 2008-01-23 12:13:37 UTC
this session shows luit doesn't work:

imi@boborjan ~ $ echo $LANG
hu_HU.UTF-8
imi@boborjan ~ $ LANG=hu_HU luit bash
imi@boborjan ~ $ echo $LANG
hu_HU
imi@boborjan ~ $ echo é >/tmp/teszt1.txt
imi@boborjan ~ $ echo ő >>/tmp/teszt1.txt
imi@boborjan ~ $ exit
imi@boborjan ~ $ echo $LANG
hu_HU.UTF-8
imi@boborjan ~ $ hexdump -C </tmp/teszt1.txt 
00000000  c3 a9 0a c5 91 0a                                 |......|
00000006
imi@boborjan ~ $ cat /tmp/teszt1.txt 
é
ő
imi@boborjan ~ $ 

if luit have done its work, then at the end two glitched characters would show up, but now two correctly encoded UTF8 characters are present.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-23 12:39:04 UTC
You are overriding your locales incorrectly, LANG is overriden by respective LC_* settings; you need to use `LC_CTYPE=hu_HU luit bash` instead.
Comment 2 Imre Péntek 2008-01-23 14:37:10 UTC
okay, copypasting another session, the error is still the same:
imi@boborjan ~ $ echo $LC_CTYPE

imi@boborjan ~ $ echo $LANG
hu_HU.UTF-8
imi@boborjan ~ $ LC_CTYPE=hu_HU bash
imi@boborjan ~ $ echo $LC_CTYPE 
hu_HU
imi@boborjan ~ $ echo $LANG 
hu_HU.UTF-8
imi@boborjan ~ $ echo é >/tmp/teszt1.txt
imi@boborjan ~ $ echo ő >>/tmp/teszt1.txt
imi@boborjan ~ $ exit
exit
imi@boborjan ~ $ echo $LC_CTYPE

imi@boborjan ~ $ echo $LANG
hu_HU.UTF-8
imi@boborjan ~ $ hexdump -C </tmp/teszt1.txt 
00000000  c3 a9 0a c5 91 0a                                 |......|
00000006
imi@boborjan ~ $ cat /tmp/teszt1.txt 
é
ő
imi@boborjan ~ $ cat /etc/env.d/02locale 
LC_ALL="hu_HU.UTF-8"
LANG="hu_HU.UTF-8"
imi@boborjan ~ $ locale
LANG=hu_HU.UTF-8
LC_CTYPE="hu_HU.UTF-8"
LC_NUMERIC="hu_HU.UTF-8"
LC_TIME="hu_HU.UTF-8"
LC_COLLATE="hu_HU.UTF-8"
LC_MONETARY="hu_HU.UTF-8"
LC_MESSAGES="hu_HU.UTF-8"
LC_PAPER="hu_HU.UTF-8"
LC_NAME="hu_HU.UTF-8"
LC_ADDRESS="hu_HU.UTF-8"
LC_TELEPHONE="hu_HU.UTF-8"
LC_MEASUREMENT="hu_HU.UTF-8"
LC_IDENTIFICATION="hu_HU.UTF-8"
LC_ALL=hu_HU.UTF-8
imi@boborjan ~ $ 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-23 16:27:29 UTC
Please move this out of bugzilla... It's clearly working just as expected when used correctly.

http://www.gentoo.org/main/en/support.xml