trying to run Polish characters support in my Gentoo. I actually thought that they were up and running until I tried to use Konsole to copy some files to NTFS partition and got an error
Code: Select all
kuba-laptop konsole # cp Powłoka.profile /mnt/usb/
cp: cannot stat `/mnt/usb/Pow\263oka.profile': Invalid or incomplete multibyte or wide character
Code: Select all
kuba-laptop konsole # mount -t ntfs-3g -o locale=pl_PL.UTF-8 /dev/sdb1 /mnt/usb
Let me now describe other symptoms that I am experiencing:
1) Konsole.
Typing Polish characters is no problem, however when I use ls they don't show up:
Code: Select all
kuba-laptop konsole # ls
Pow?oka.profile WhiteOnBlack.colorscheme konsole konsoleui.rc
The settings that I use are UTF-8 in Settings -> Edit Current Profile -> Advanced/Encoding.
2) Midnight Commander
Every Polish character is displayed as a question mark (or even two question marks per character), despite having set UTF-8 in Option -> Display Bits and Right -> Encoding.
3) Dolphin
Polish characters are replaced with question marks in the icon names, however I can create files with Polish names using the dialog box, even on the ntfs-3g mounted device.
4) Standard terminal
Here I can type Polish characters, and create files with names containing them even on the ntfs-3g mounted device. Still ls shows question marks instead of them, and Tab completion shows them as shaded blocks.
Ok, thats it for the symptoms. I shall now describe my system wide settings and what I am aiming for.
I would like my system to communicate with me in English (so I am able to google the error messages:), install english versions of all programs but recognize Polish fonts and display numbers, adressess etc in Polish format. Here are my settings I think might be useful:
Code: Select all
kuba-laptop konsole # cat /etc/locale.gen
# /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.
#en_US ISO-8859-1
en_US.UTF-8 UTF-8
pl_PL.UTF-8 UTF-8
#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
Code: Select all
kuba-laptop konsole # locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8@euro
LC_CTYPE=pl_PL.utf8
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8
LC_COLLATE=C
LC_MONETARY=pl_PL.UTF-8@euro
LC_MESSAGES=C
LC_PAPER=pl_PL.UTF-8@euro
LC_NAME=pl_PL.UTF-8@euro
LC_ADDRESS=pl_PL.UTF-8@euro
LC_TELEPHONE=pl_PL.UTF-8@euro
LC_MEASUREMENT=pl_PL.UTF-8@euro
LC_IDENTIFICATION=pl_PL.UTF-8@euro
LC_ALL=
Code: Select all
kuba-laptop konsole # cat /etc/env.d/02locale
LANG="en_GB.UTF-8@euro"
LC_COLLATE="C"
LC_CTYPE="pl_PL.utf8"
LC_MONETARY="pl_PL.UTF-8@euro"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_MESSAGES="C"
LC_PAPER="pl_PL.UTF-8@euro"
LC_NAME="pl_PL.UTF-8@euro"
LC_ADDRESS="pl_PL.UTF-8@euro"
LC_TELEPHONE="pl_PL.UTF-8@euro"
LC_MEASUREMENT="pl_PL.UTF-8@euro"
LC_IDENTIFICATION="pl_PL.UTF-8@euro"
LC_ALL=""
Code: Select all
kuba-laptop konsole # cat /etc/conf.d/consolefont
# /etc/conf.d/consolefont
# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console. You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).
CONSOLEFONT="lat2a-16"
# CONSOLETRANSLATION is the charset map file to use. Leave commented to use
# the default one. Have a look in /usr/share/consoletrans for a selection of
# map files you can use.
CONSOLETRANSLATION="8859-2_to_uni"
Code: Select all
kuba-laptop konsole # rc-update -s boot
alsasound | boot
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
hostname | boot
hotplug | boot
keymaps | boot
localmount | boot
modules | boot
net.lo | boot
urandom | boot
Code: Select all
kuba-laptop konsole # echo $CONSOLEFONT
kuba-laptop konsole #
Code: Select all
kuba-laptop konsole # emerge --info
Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 31 Dec 2010 21:45:02 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.11-r1
dev-lang/python: 2.6.5-r3, 3.1.2-r4
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13::<unknown repository>, 2.65-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -mfpmath=sse,387 -msse2 -mmmx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -mfpmath=sse,387 -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.prz.rzeszow.pl"
LANG="en_GB.UTF-8@euro"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi aiglx alsa amd64 audiofile avi bash-completion berkdb binary-drivers bluetooth bzip2 cddb cdparanoia cdr cg cli cracklib crypt cups cxx dbus directfb divx4linux djvu doc dri dts dv dvd dvdr dvdread dvi encode exif fame fbcon ffmpeg fftw firefox flac fortran ftp gd-external gdbm gif glut gmp gnokii gphoto2 gpm gtk gtk2 ical iconv ieee1394 imagemagick ipv6 irda jack java javascript jikes jpeg jpeg2k kde libcaca libww lm_sensors mad mime mjpeg mmap mmx mmx2 mng modules mp3 mpeg mplayer mudflap multilib musepack ncurses nls nptl nptlonly nsplugin nvidia offensive ogg openal opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline recode samba sdl session sharedmem slang sockets sox spell sse sse2 ssl subtitles svg sysfs tcpd tiff timidity tk truetype unicode usb vcd vim-syntax vim_with-x vorbis wifi wmf wxwindows x264 xcomposite xine xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keybord mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Any help would be appreciated. Cheers!
Ah... and the last thing
Code: Select all
kuba-laptop konsole # date
Sun Jan 2 14:49:05 GMT 2011



