pentoo / pentoo-historical

read-only historical backup of pentoo from googlecode
https://code.google.com/p/pentoo/
2 stars 1 forks source link

UTF8 support #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
for whatever reason UTF8 never works to me.  Fix this before release time.

Original issue reported on code.google.com by sidhayn on 9 Jun 2012 at 3:46

GoogleCodeExporter commented 9 years ago
Placing LC_CTYPE="en_US.UTF8" in /etc/env.d/02locale will do it, the file does 
not exist on the DefCon iso.

Run outside X:
echo 'LC_CTYPE="en_US.UTF8"' >> /etc/env.d/02locale && \
env-update && source /etc/profile

See http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3 if you're 
interested in the details.

Test by running (both inside and outside X):
a) grep -F -e '[da]' -e '[de]' -e '[el]' 
/usr/share/xfce4/panel/plugins/systray.desktop
b) less /usr/share/xfce4/panel/plugins/systray.desktop

Without the fix, less will even complain about possible binary file and the 
output is   crappy.
With the fix this does not happen and the visible output is way better.
Outside X all western European chars plus some others are correctly displayed.
Inside X (xfce4-terminal), even some Chinese/Maya/Hebrew, etc chars are 
visible, only very few exceptions.

(Don't see where to "fix" this in the pentoo svn repo.)

Original comment by Woudan0@gmail.com on 12 Aug 2012 at 10:50

GoogleCodeExporter commented 9 years ago
The above 02locale fix has been made for BUILDING THE LIVECD only. Installed 
users currently need to make this change themselves.

If you would like to write some simple bash (for the pentoo/pentoo ebuild) that 
detects if /etc/env.d/02locale exists and if not to populate it, I would be 
happy to accept it. Otherwise I'll take that idea when I have spare time (don't 
hold your breath).

Original comment by sidhayn on 13 Aug 2012 at 1:43

GoogleCodeExporter commented 9 years ago
This appears functional and I'm happy till the next complaint.

Original comment by sidhayn on 27 Sep 2012 at 9:49