Re: "error: unknown encoding UTF8: using iso88591 as fallback"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

On Fri, 29 May 2015 20:21:43 +0200, Jens Adam wrote:
>Fri, 29 May 2015 18:15:58 +0200 Ralf Mardorf
><ralf.mardorf@xxxxxxxxxxxxxx>:
>
>> Do I have to run local-gen after or before I edit /etc/locale.conf?
>> My understanding is that I have to run locale-gen first and then I
>> need to edit /etc/locale.conf.
>
>You only run 'locale-gen' after editing '/etc/locale.gen'.
>'/etc/locale.conf' has nothing to do with that.

so regarding this everything I did was correct.

On Fri, 2015-05-29 at 19:20 +0200, Martti Kühne wrote:
> Since we ruled out system configuration problems, you will have to
> look through the files claws-mail would read for input as returned by
> $ strace -e open -o claws-mail.strace claws-mail
> 
> When it loads and the error messages are there, you would just quit
> claws-mail again.
> 
> My guess is that the problem lies in some gui toolkit configuration
> file, ~/.* or similar. You'll have to rule out any binary files and
> grep all plaintext files with this:
> $ grep -Po '(?<=")[^"]+(?=")' claws-mail.strace | while read file; do
> [[ -e "$file" ]] && file -b "$file" | grep -q text && grep UTF8
> "$file"; done

I did it for Pluma instead of Claws. The error messages appeared when
saving a text. [2]

> Get all string sequences between double quotes from the claws-mail
> strace log, check if it exists and is a text file using the
> libmagic-based file tool, then check if it contains your invalid
> string.

I don't understand what to do. However, there is an issue with files
that don't exist. [1]

> You don't even deserve this solution, and you'll start sprae

I don't understand this either.

[rocketmouse@archlinux Desktop]$ grep -Po '(?<=")[^"]+(?=")' pluma.strace | grep config
/usr/lib/libfontconfig.so.1
/home/rocketmouse/.config/pluma/accels
/home/rocketmouse/.config/dconf/user
/usr/share/gtksourceview-2.0/language-specs/pkgconfig.lang
/var/cache/fontconfig//3830d5c3ddfd5cd38a049b759396e72e-le64.cache-4
/var/cache/fontconfig//df311e82a1a24c41a75c2c930223552e-le64.cache-4
/var/cache/fontconfig//17090aa38d5c6f09fb8c5c354938f1d7-le64.cache-4
/var/cache/fontconfig//f349e9996a5320f6dd491cedd2b1f964-le64.cache-4
/var/cache/fontconfig//f6b893a7224233d96cb72fd88691c0b4-le64.cache-4
/var/cache/fontconfig//d62e99ef547d1d24cdb1bd22ec1a2976-le64.cache-4
/var/cache/fontconfig//210c0516121708a580e22e6b1f9a103a-le64.cache-4
/var/cache/fontconfig//e83f37fcf327f1deda509da0f6605954-le64.cache-4
/var/cache/fontconfig//a0f105d33f75736c5f51c104a35e7606-le64.cache-4
/var/cache/fontconfig//6ba42ae0000f58711b5caaf10d690066-le64.cache-4
/var/cache/fontconfig//2d31a572ce6667f6a0da9c8dc611898b-le64.cache-4
/var/cache/fontconfig//a1c95d6dfc9a7b34f44445cf81166004-le64.cache-4
/var/cache/fontconfig//8d4af663993b81a124ee82e610bb31f9-le64.cache-4
/var/cache/fontconfig//4b172ca7f111e3cffadc3636415fead9-le64.cache-4
/var/cache/fontconfig//5ca8086aeacc9c68e81a71e7ef846b3b-le64.cache-4
/home/rocketmouse/.config/pango/pangorc
/home/rocketmouse/.config/pluma/pluma.ini
/home/rocketmouse/.config/user-dirs.dirs
/home/rocketmouse/.config/dconf/user
/home/rocketmouse/.config/enchant/enchant.ordering
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/gtk-3.0/bookmarks
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/dconf/user
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini.W8WLZX
/home/rocketmouse/.config/gtk-2.0/gtkfilechooser.ini
/home/rocketmouse/.config/enchant/enchant.ordering
/home/rocketmouse/.config/enchant/en_US.dic
/home/rocketmouse/.config/enchant/en_US.dic
/home/rocketmouse/.config/enchant/en_US.exc
/home/rocketmouse/.config/enchant/en_US.exc
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pluma/accels
/home/rocketmouse/.config/pulse/client.conf
/home/rocketmouse/.config/pluma/accels
/home/rocketmouse/.config/pluma/pluma.ini.VU7FZX

Regards,
Ralf

[1]
[rocketmouse@archlinux Desktop]$ grep utf pluma.strace 
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/pluma.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/pluma.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gtk20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gtk20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gtk20-properties.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gtk20-properties.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gtksourceview.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gtksourceview.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/atk10.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/atk10.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/pulseaudio.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/pulseaudio.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/iso_639.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/iso_639.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/iso_3166.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/iso_3166.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
[rocketmouse@archlinux Desktop]$ ls -hAl /usr/share/locale/en_US.*/LC_MESSAGES/pluma.mo
ls: cannot access /usr/share/locale/en_US.*/LC_MESSAGES/pluma.mo: No such file or directory
[rocketmouse@archlinux Desktop]$ ls -hAl /usr/share/locale/*/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root  38K May  1  2014 /usr/share/locale/af/LC_MESSAGES/pluma.mo
[snip]
-rw-r--r-- 1 root root  87K May  1  2014 /usr/share/locale/da/LC_MESSAGES/pluma.mo-rw-r--r-- 1 root root  96K May  1  2014 /usr/share/locale/de/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root 131K May  1  2014 /usr/share/locale/dz/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root 121K May  1  2014 /usr/share/locale/el/LC_MESSAGES/pluma.mo-rw-r--r-- 1 root root  86K May  1  2014 /usr/share/locale/en_AU/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root  50K May  1  2014 /usr/share/locale/en_CA/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root  86K May  1  2014 /usr/share/locale/en_GB/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root 139K May  1  2014 /usr/share/locale/en@shaw/LC_MESSAGES/pluma.mo
-rw-r--r-- 1 root root  73K May  1  2014 /usr/share/locale/eo/LC_MESSAGES/pluma.mo
[snip]
-rw-r--r-- 1 root root  84K May  1  2014 /usr/share/locale/zh_TW/LC_MESSAGES/pluma.mo

[2]
[rocketmouse@archlinux Desktop]$ grep -Po '(?<=")[^"]+(?=")'
pluma.strace | while read file; do [[ -e "$file" ]] && file -b "$file"
| grep -q text && grep UTF8 "$file"; done
[rocketmouse@archlinux Desktop]$ grep -Po '(?<=")[^"]+(?=")'
pluma.strace | while read file; do [[ -e "$file" ]] && file -b "$file"
| grep -q text && grep utf8 "$file"; done
af_ZA.utf8                              af_ZA.UTF-8
[snip]
da_DK.utf8                                      da_DK.UTF-8
de_AT.utf8                                      de_AT.UTF-8
de_CH.utf8                                      de_CH.UTF-8
de_DE.utf8                                      de_DE.UTF-8
de_LU.utf8                                      de_LU.UTF-8
el_GR.utf8                                      el_GR.UTF-8
en_AU.utf8                                      en_AU.UTF-8
en_BE.utf8                                      en_BE.UTF-8
en_BW.utf8                                      en_BW.UTF-8
en_CA.utf8                                      en_CA.UTF-8
en_DL.utf8                                      en_DL.UTF-8
en_GB.utf8                                      en_GB.UTF-8
en_HK.utf8                                      en_HK.UTF-8                                             
en_IE.utf8                                      en_IE.UTF-8
en_IN.utf8                                      en_IN.UTF-8
en_NZ.utf8                                      en_NZ.UTF-8
en_PH.utf8                                      en_PH.UTF-8
en_SG.utf8                                      en_SG.UTF-8
en_US.utf8                                      en_US.UTF-8
en_ZA.utf8                                      en_ZA.UTF-8
en_ZW.utf8                                      en_ZS.UTF-8
es_AR.utf8                                      es_AR.UTF-8
[snip]
zh_HK.utf8:                                     zh_HK.UTF-8
zh_TW.utf8:                                     zh_TW.UTF-8
zu_ZA.utf8:                                     zu_ZA.UTF-8
univ.utf8:                                      en_US.UTF-8
universal.utf8@ucs4:                            en_US.UTF-8
              <keyword>utf8</keyword>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux