Summary: | Damaged display of UTF characters in new version 1.4 of app-text/ding | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maik Musall <maik> |
Component: | Current packages | Assignee: | Torsten Veller (RETIRED) <tove> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | heiko.baums |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://ipx10099.ipxserver.de/files/ding.png | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Maik Musall
2005-07-16 01:40:26 UTC
Uhm, you locate is incorrect for UTF-8. It should be de_DE-UTF-8/en_US.UTF-8 locale de_DE.UTF-8 does no longer exist, it's now renamed to de_DE.utf8, and I suppose there are still some applications that need the old form. But I don't want UTF. I normally want ISO8859 encoding since I have many files that are encoded with ISO8859 and I don't want to mix this. Isn't an application like ding supposed to *respect* my locale and display things in ISO8859? Is there a fix in sight? I'm having the same problem. output of `locale -a`? does iconv work ie can it convert from utf8? 2 hacks: LC_CTYPE=de_DE.UTF-8 ding (maybe alias ding="LC_CTYPE=de_DE.UTF-8 ding") or cd /usr/share/dict cp de-en.txt de-en.txt.UTF8 iconv -futf8 -tiso8859-1 de-en.txt > de-en.txt.iso8859-1 cp de-en.txt.iso8859-1 de-en.txt (In reply to comment #4) > output of `locale -a`? To make it short only the important lines: # locale -a | grep de_DE de_DE de_DE@euro de_DE.utf8 # locale -a | grep en_US en_US en_US.utf8 So everything important is there. > does iconv work ie can it convert from utf8? iconv works. > LC_CTYPE=de_DE.UTF-8 ding (maybe alias ding="LC_CTYPE=de_DE.UTF-8 ding") This hack doesn't work. > cd /usr/share/dict > cp de-en.txt de-en.txt.UTF8 > iconv -futf8 -tiso8859-1 de-en.txt > de-en.txt.iso8859-1 > cp de-en.txt.iso8859-1 de-en.txt This hack works. Thanks! (In reply to comment #5) > (In reply to comment #4) > > LC_CTYPE=de_DE.UTF-8 ding (maybe alias ding="LC_CTYPE=de_DE.UTF-8 ding") > > This hack doesn't work. It should work. Did you set LC_ALL in your environment? `locale` shows it - please post it. > > cd /usr/share/dict > > cp de-en.txt de-en.txt.UTF8 > > iconv -futf8 -tiso8859-1 de-en.txt > de-en.txt.iso8859-1 > > cp de-en.txt.iso8859-1 de-en.txt > > This hack works. Thanks! I've seen that the 'cp's are not needed. One can set the dictionary in ding's settings (so it could be set to de-en.txt.iso8859-1). (In reply to comment #6) > It should work. > Did you set LC_ALL in your environment? > `locale` shows it - please post it. This is how I had set the variables first: LANG=de_DE@euro LC_ALL=de_DE@euro Then for testing purposes and to finally get English compiler outputs in my German environment I changed these settings to this: LANG=de_DE@euro LC_CTYPE=de_DE@euro LC_NUMERIC=de_DE@euro LC_TIME=de_DE@euro LC_COLLATE=de_DE@euro LC_MONETARY=de_DE@euro LC_MESSAGES=en_US LC_PAPER=de_DE@euro LC_NAME=de_DE@euro LC_ADDRESS=de_DE@euro LC_TELEPHONE=de_DE@euro LC_MEASUREMENT=de_DE@euro LC_IDENTIFICATION=de_DE@euro LC_ALL= Both with the same result regarding ding and your first hack. But on the ding website http://www-user.tu-chemnitz.de/~fri/ding/ I found this in the changelog: Changes in version 1.4: ... - Using UTF-8 encoding now, renamed ger-eng.txt to de-en.txt ... The ding developers seem to have switched completely to unicode so that this bug isn't really a bug but a feature. Maybe this is why your first hack with the LC_* veriables doesn't work. But your second hack works as a workaround until Gentoo can be switched completely to unicode. > I've seen that the 'cp's are not needed. One can set the dictionary in ding's > settings (so it could be set to de-en.txt.iso8859-1). I didn't know these settings in ding, too. The cp's are not necessary but have also their small advantage. So you can have an iso8859-1 and a utf8 version of this file and can set a link to the version you need mainly. LC_CTYPE=de_DE.UTF-8 ding works for me. |