Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] KDE and accents in filenames
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 57

PostPosted: Sun Jun 17, 2018 8:35 am    Post subject: [SOLVED] KDE and accents in filenames Reply with quote

Hello,

Since a few months, all my KDE applications (k3b, kmymoney, etc.) have huge problems with non-ascii characters in filenames, and cannot open those files or directories.
I'm pretty sure this is not a KDE bug but some mistake I did in my compilation environment. But I cannot find what or where.

Any help or hint would be appreciated.

My current global USE flags are

Code:

USE="acl acpi -ada alsa -aqua -bindist -bluetooth cleartype consolekit corefonts dbus -fortran -gnome \
    -gstreamer -handbook -ipv6 -kde -kdepim -kdepimlibs -kontact -kwallet -ldap minimal -orc -phonon pulseaudio \
    -qt3support -qt4 qt5 -ruby -semantic-desktop -session smp -spell truetype udev -webdav xinerama"


TIA,
-- Sarg


Last edited by Sargastic on Tue Jul 17, 2018 6:42 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Sun Jun 17, 2018 8:52 am    Post subject: Reply with quote

In my plasma system no problem with foreign characters in filename.
What locale is set in your system?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 57

PostPosted: Sun Jun 17, 2018 9:22 am    Post subject: Reply with quote

fedeliallalinea wrote:
In my plasma system no problem with foreign characters in filename.
What locale is set in your system?


Here is my locale definition. Same since a lot of years.

Code:
$ locale
LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Mon Jun 18, 2018 4:50 pm    Post subject: Reply with quote

Sorry, I tired to reproduce the problem without success (also serched in kde bug tracker)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon Jun 18, 2018 5:32 pm    Post subject: Reply with quote

I'm using the en_GB locale and don't have the problem.

Code:
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Code:
$ grep -v ^# /etc/locale.gen


en_GB ISO-8859-1
en_GB.UTF-8 UTF-8
pt_BR ISO-8859-1
pt_BR.UTF-8 UTF-8
es_ES ISO-8859-1
es_ES.UTF-8 UTF-8

Code:
$ locale -a
C
POSIX
en_GB
en_GB.iso88591
en_GB.utf8
es_ES
es_ES.iso88591
es_ES.utf8
pt_BR
pt_BR.iso88591
pt_BR.utf8

Code:
$ eix -I plasma-meta
[I] kde-plasma/plasma-meta
     Available versions:  (5) 5.12.5
       {bluetooth crypt +display-manager grub gtk +handbook legacy-systray networkmanager pam plymouth pulseaudio +sddm sdk +wallpapers}
     Installed versions:  5.12.5(5)(14:55:38 08/06/18)(bluetooth crypt display-manager gtk handbook networkmanager pam pulseaudio wallpapers -grub -legacy-systray -plymouth -sddm -sdk)
     Homepage:            https://www.kde.org/workspaces/plasmadesktop/
     Description:         Merge this to pull in all Plasma 5 packages

Code:
$ emerge --info | grep ^USE
USE="X a52 aac acl acpi activities aes aim alsa amd64 audiofile avahi avx avx2 bash-completion berkdb bidi bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit crypt cups cxx dbus declarative dga dri dts dv dvb dvd dvdr dvdread emboss encode exif fam ffmpeg flac fma3 foomaticdb fortran gcj gdbm gif gimp glamor gmp gnutls gphoto2 gpm gsm gtk iconv icq icu imap inotify ipod ipv6 jabber jack jpeg kde kipi kwallet lame lcms ldap libnotify libtirpc lm_sensors lzo mad matroska mbox mmx mmxext mng modules mp3 mp4 mpeg msn multilib musepack musicbrainz ncurses networkmanager nls nptl nsplugin ogg openal openexr opengl openmp pam pango pcre pda pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt3support qt5 rdesktop readline rss scanner sdl seccomp semantic-desktop slp speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb v4l vorbis widgets wifi wmf wxwidgets x264 xattr xcb xcomposite xine xml xv xvid yahoo zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-GB pt-BR es-ES" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 modesetting 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"

Do you have a locale specified in your /etc/fstab file, by any chance, as that can change how filenames with diacritics are handled?
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 57

PostPosted: Fri Jun 22, 2018 5:41 am    Post subject: Reply with quote

fedeliallalinea wrote:
Sorry, I tired to reproduce the problem without success (also serched in kde bug tracker)


Thanks for trying.

Fitzcarraldo wrote:
I'm using the en_GB locale and don't have the problem.
Code:
$ eix -I plasma-meta
[I] kde-plasma/plasma-meta
     Available versions:  (5) 5.12.5
       {bluetooth crypt +display-manager grub gtk +handbook legacy-systray networkmanager pam plymouth pulseaudio +sddm sdk +wallpapers}
     Installed versions:  5.12.5(5)(14:55:38 08/06/18)(bluetooth crypt display-manager gtk handbook networkmanager pam pulseaudio wallpapers -grub -legacy-systray -plymouth -sddm -sdk)
     Homepage:            https://www.kde.org/workspaces/plasmadesktop/
     Description:         Merge this to pull in all Plasma 5 packages



No plasma-meta installed. I'm not using KDE desktop, only some KDE apps.

Fitzcarraldo wrote:

Code:
$ emerge --info | grep ^USE
USE="X a52 aac acl acpi activities aes aim alsa amd64 audiofile avahi avx avx2 bash-completion berkdb bidi bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit crypt cups cxx dbus declarative dga dri dts dv dvb dvd dvdr dvdread emboss encode exif fam ffmpeg flac fma3 foomaticdb fortran gcj gdbm gif gimp glamor gmp gnutls gphoto2 gpm gsm gtk iconv icq icu imap inotify ipod ipv6 jabber jack jpeg kde kipi kwallet lame lcms ldap libnotify libtirpc lm_sensors lzo mad matroska mbox mmx mmxext mng modules mp3 mp4 mpeg msn multilib musepack musicbrainz ncurses networkmanager nls nptl nsplugin ogg openal openexr opengl openmp pam pango pcre pda pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt3support qt5 rdesktop readline rss scanner sdl seccomp semantic-desktop slp speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb v4l vorbis widgets wifi wmf wxwidgets x264 xattr xcb xcomposite xine xml xv xvid yahoo zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-GB pt-BR es-ES" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 modesetting 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"

Do you have a locale specified in your /etc/fstab file, by any chance, as that can change how filenames with diacritics are handled?


Here is mine.

Code:
$ emerge --info | grep ^USE
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac gdbm gif glamor gpm gtk iconv jpeg lcms libnotify libtirpc mad minimal mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp smp ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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"


Accents and diacritics are perfectly OK with bash, my file manager (Caja) and a lot of applications (Gimp, Inkscape, LibreOffice, etc.). It's only KDE apps that barf on them, and only since a few months. This leads me to believe into some smelly mistake on my compile/config environment. But which one and where ???
Back to top
View user's profile Send private message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 57

PostPosted: Tue Jul 17, 2018 6:50 am    Post subject: And the proper answer is... Reply with quote

Hi,

If someone else gets hit by this very annoying problem...

After looking here and there, and compiling one 'offending' application on another computer (where the problem DID NOT appear), I went back to good old-fashionned Gentoo config manual.

The Gentoo Localization guide includes one very small gem that led me to the answer to my troubles :

Quote:
In some cases users may notice glitchy non-English representation in some applications like Krusader (https://bugs.kde.org/show_bug.cgi?id=371582). Removing or commenting the LC_ALL="" line from /etc/env.d/02locale should fix the problem.


Of course, on the affected computer, I had
Code:
LC_ALL=""
in 02locale, whereas this line was not present on the "properly working" computer.

So I removed the line, made a env-update and I'm back with everything okay.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum