aMule Forum

English => en_Bugs => Topic started by: nachbarnebenan on December 22, 2004, 12:47:54 PM

Title: unicode build has problems with special chars in filenames
Post by: nachbarnebenan on December 22, 2004, 12:47:54 PM
rc8, wxall 2.5.3 unicode, gtk2 2.4.9 is unable to open files with german umlauts or apostrophes in them. filenames are utf8

amule@computer1:~> locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE=POSIX
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

aMule console output is:
--------------------------------------------------------------------------
No permisions to open /share/done/Die Männer des Khan 1.txt, skipping
No permisions to open /share/done/Die Männer des Khan 2.txt, skipping
No permisions to open /share/done/03-4 Vorwärts ist Rückwärts!.flac, skipping
No permisions to open /share/done/Mord à la Carte.txt, skipping
No permisions to open /share/done/çest la vie.txt, skipping
No permisions to open /share/done/Der falsche Verdächtige.txt, skipping
--------------------------------------------------------------------------

but amule's own log shows them as this:
--------------------------------------------------------------------------
22.12.2004 12:35:34: Kann Datei '/share/done/Die Männer des Khan 1.txt' nicht öffnen
22.12.2004 12:35:34: Kann Datei '/share/done/Die Männer des Khan 2.txt' nicht öffnen
22.12.2004 12:35:34: Kann Datei '03-4 Vorwärts ist Rückwärts!.flac' nicht öffnen
22.12.2004 12:35:34: Kann Datei 'Mord à la Carte.txt' nicht öffnen
22.12.2004 12:35:34: Kann Datei '¶est la vie.txt' nicht öffnen
22.12.2004 12:35:34: Kann Datei 'Der falsche Verdächtige' nicht öffnen
--------------------------------------------------------------------------

Files are owned by user amule and readable. Non-unicode gtk2 or gtk1 builds work as expected. Since I'm sure this worked with cvs some time ago (around 1116) there is most probably smth wrong on my side. Any hints where to look for?
Title: Re: unicode build has problems with special chars in filenames
Post by: GonoszTopi on December 22, 2004, 07:08:50 PM
I also noticed this problem, when a download finished with accented chars, aMule saved it correctly, but could never again open it.

So, it's our fault, not yours.

Thanks for the report, will have a look.
Title: Re: unicode build has problems with special chars in filenames
Post by: Kry on December 26, 2004, 06:12:33 PM
Fixed on CVS.
Title: Re: unicode build has problems with special chars in filenames
Post by: nachbarnebenan on December 28, 2004, 01:14:52 PM
Hmm, not quite right. Seems their hashs aren't stored properly and the files get rehashed everytime you reload or start aMule. And dirs with special chars in their names are not shared too.
Title: Re: unicode build has problems with special chars in filenames
Post by: Kry on December 28, 2004, 04:35:46 PM
If I didn't mention I hate you, it's a good time to start :P


let's have a look.
Title: Re: unicode build has problems with special chars in filenames
Post by: nachbarnebenan on December 29, 2004, 03:36:51 PM
> If I didn't mention I hate you, it's a good time to start

good to know

> let's have a look.

hmm, in console i get the following:

Hasher: Starting to create MD4 and AICH hash for file: Die Männer ********* 1.txt
Hasher: Finished hashing file: Die Männer ******** 1.txt
File not added to sharedlist: Die Männer ********* 1.txt
Hasher: Starting to create MD4 and AICH hash for file: Die Männer ********* 2.txt
Hasher: Finished hashing file: Die Männer ********* 2.txt
File not added to sharedlist: Die Männer ********* 2.txt
Hasher: Starting to create MD4 and AICH hash for file: 03-4 Vorwärts **** Rückwärts!.flac
Hasher: Finished hashing file: 03-4 Vorwärts ****** Rückwärts!.flac
File not added to sharedlist: 03-4 Vorwärts ***** Rückwärts!.flac
Hasher: Starting to create MD4 and AICH hash for file: Die ********* Überfahrt.pdf
Hasher: Finished hashing file: Die ********* Überfahrt.pdf
File not added to sharedlist: Die ********* Überfahrt.pdf
Hasher: Starting to create MD4 and AICH hash for file: çest la vie.txt
Hasher: Finished hashing file: çest la vie.txt
File not added to sharedlist: çest la vie.txt