I have copy Coté.JPG and other files from my Windows 7 laptop to my OpenELEC HTPC using SMB sharing.
On a puTTy terminal, I get :
Code:
root ~ # cd /storage/pictures/
root ~/pictures # ls -l
total 3132
-rwxr--r-- 1 root root 477401 Sep 18 2010 Arrière.JPG
-rwxr--r-- 1 root root 497919 Sep 18 2010 Avant.JPG
-rwxr--r-- 1 root root 406994 Sep 18 2010 Banquette.JPG
-rwxr--r-- 1 root root 319696 Sep 18 2010 Compteur.JPG
-rwxr--r-- 1 root root 507214 Sep 18 2010 Conducteur.JPG
-rwxr--r-- 1 root root 548651 Sep 18 2010 Coté.JPG
-rwxr--r-- 1 root root 435196 Sep 18 2010 Passager.JPG
But XBMC display good names :
After changing my puTTy settings (Latin-1 to UTF-8), ls is OK :
Code:
root ~/pictures # ls -l
total 3132
-rwxr--r-- 1 root root 477401 Sep 18 2010 Arrière.JPG
-rwxr--r-- 1 root root 497919 Sep 18 2010 Avant.JPG
-rwxr--r-- 1 root root 406994 Sep 18 2010 Banquette.JPG
-rwxr--r-- 1 root root 319696 Sep 18 2010 Compteur.JPG
-rwxr--r-- 1 root root 507214 Sep 18 2010 Conducteur.JPG
-rwxr--r-- 1 root root 548651 Sep 18 2010 Coté.JPG
-rwxr--r-- 1 root root 435196 Sep 18 2010 Passager.JPG
How my openelec is set up by default :
Code:
root ~/.xbmc/temp # locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
And now, scanning is KO :
Code:
06:34:32 T:140422180857664 ERROR: Control 2006 in window 13000 has been asked to focus, but it can't
06:34:32 T:140422180857664 ERROR: ClearBlock: Trying to clear non existent block /storage/.xbmc/addons/script.module.dialogaddonscan
06:34:32 T:140421832210176 ERROR: Error Type: <type 'exceptions.UnicodeDecodeError'>
06:34:32 T:140421832210176 ERROR: Error Contents: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
06:34:32 T:140421832210176 ERROR: Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.image.mypicsdb/scanpath.py", line 503, in <module>
main2()
File "/storage/.xbmc/addons/plugin.image.mypicsdb/scanpath.py", line 172, in main2
count_files(unquote_plus(path),False)
File "/storage/.xbmc/addons/plugin.image.mypicsdb/scanpath.py", line 223, in count_files
walk(path, processDirectory, None )
File "/usr/lib/python2.7/posixpath.py", line 231, in walk
name = join(top, name)
File "/usr/lib/python2.7/posixpath.py", line 69, in join
path += b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
Rename Coté.JPG to Cote.JPG and Arrière.JPG to Arriere.JPG and everything is OK.
Has I never use accented characters in path or filename, it doesn't matter but I want to try my mods under Linux.