[SOLVED] Strange white square symbols in place of left and right apostrophe
GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Strange white square symbols in place of left and right apostrophe
Hi,
I've recently installed Gentoo and everything seems ok apart from the fact I see a strange (small white square) characters where apostrophes should be in certain output. For example, cp and rm with the -v parameter option on.
Code:
# touch a.txt
# cp -v a.txt b.txt
Produces the below output. Except white squares (with putty it seems to show as 'â').
Code:
âa.txtâ -> âb.txtâ
If I change the translation options within putty to use the UTF-8 remote character set, the output is displayed correctly.
One thing that I notice is that you actually have your LANG defined. On most of the boxes I have built with Gentoo, I do not define LANG. Did you set it in /etc[/portage]/make.conf, or is it coming from your DE? As a quick note, doing a recursive search for LANG in /etc/* showed me this:
Code:
/etc/X11/startDM.sh:# We need to source /etc/profile for stuff like $LANG to work
/etc/apache2/modules.d/00_languages.conf:<IfDefine LANGUAGE>
/etc/conf.d/env_whitelist:# taken from /etc/profile.env - meaning, if you need to set LANG or such,
/etc/conf.d/apache2:# LANGUAGE Enables content-negotiation based on language and charset.
/etc/conf.d/apache2:APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE"
/etc/init.d/webmin: --env LANG= \
...<snip>...
/etc/speech-dispatcher/modules/swift-generic.conf:# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
/etc/sudoers:# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
/etc/xcdroast.conf:LANGUAGE = ""
/etc/xdg/openbox/environment:#LANG=en_CA.UTF8
Only place I have defined what language/charset support I have on a system is in /etc/locale.gen. From the /etc/locale.gen on this system:
Code:
# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# <locale> <charmap>
#
# Where <locale> is a locale located in /usr/share/i18n/locales/ and
# where <charmap> is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you. After updating this file, you can simply run `locale-gen`
# yourself instead of re-emerging glibc.
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
#de_DE@euro ISO-8859-15
#es_MX ISO-8859-1
#fa_IR UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
#it_IT ISO-8859-1
en_US ISO-8859-1
en_US.UTF-8 UTF-8
en_GB.UTF8 UTF-8
en_GB ISO-8859-1
en_AU.UTF-8 UTF-8
en_AU ISO-8859-1
#
## EOF
And as an interesting comparison, here's my locale output:
[SOLVED] Strange white square symbols in place of left and right apostrophe
Actually, I wasn't quite sure that it was solved - I still got some strange results when using the £ sign both inside and out of X. However, I have now solved the issue.
After running the below command, I noticed that Gentoo lists the locale as "en_GB.uft8", not "en_GB.UTF-8".
Code:
$ locale -a
C
POSIX
en_GB
en_GB.iso88591
en_GB.utf8
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.