aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Problems with UTF-8 filenames  (Read 7183 times)

sidamos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
Problems with UTF-8 filenames
« on: March 10, 2005, 11:31:00 AM »

HI!

Suse 9.2 uses UTF-8 for filenames as default.

If I have German Umlauts in a file, then Amule displays them corrupted in the Shared Files list.

I don't know yet what happens, if I download a file with Umlauts.

Running rc8 on Suse 9.2 with KDE.

Thanks!

Thomas
Logged

sidamos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
RE: Problems with UTF-8 filenames
« Reply #1 on: March 10, 2005, 11:33:32 AM »

HI!

Just noticed another UTF-8 problem:
If I type in a German Umlaut in the search field, it's being displayed corrupted immediately.

I am using the Suse 9.2 RPM.

Thomas
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #2 on: March 10, 2005, 11:41:33 AM »

yeah thats cause due to the fact that those rpms are made with gtk1...this does not support unicode

so you have the choice to update your wxGTK rpms to 2.5.3 or 2.5.4 and compile it with gtk2 support turned on.

then recompile your amule against those new wxGTK libs, and amule will come with gtk2 support and also unicode enabled.

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

sidamos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
Re: Problems with UTF-8 filenames
« Reply #3 on: March 10, 2005, 12:11:56 PM »

HI!

wxGTK 2.5.2 is available as RPM from Suse for Suse 9.2. Would this be enough?

Could you (or the packager of the aMule Suse 9.2 RPMs) provide updated aMule RPMs with Unicode support for Suse 9.2?

Thomas
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #4 on: March 10, 2005, 12:19:13 PM »

well about the update, if we do it we provide gtk1 and gtk2 for 2.0 final.

about those wxGTK 2.5.2 rpms from suse,
1st 2.5.2 version was still bit buggy, especially with source connections.
2nd wxGTK rpms fhttp://www.amule.org/wiki/index.php/Using_another_wxinstallrom suse are most often fucked so I would not recommend them

to solve your problem I would recommend you soemthing really simple.
keep your installations as it is right now and install in
/home/USER/amule/blablab.....
wxGTK and a "new" amule with gtk2 support
check
http://www.amule.org/wiki/index.php/Using_another_wxinstall

dl wxGTK 2.5.4 from http://www.wxwidgets.org and compile with
./configure --prefix=/your_prefix/ --enable-gtk2 --enable-unicode

and then compile amule against those new wxGTK
./configure --with-wx-config=/your_prefix/bin/wx-config --more_options

its not that hard ;)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #5 on: March 10, 2005, 12:21:04 PM »

btw and while you are compiling anyway ;)
use amule-cvs from http://amule.hirnriss.net :) its lots lots betten then rc8

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

sidamos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
Re: Problems with UTF-8 filenames
« Reply #6 on: March 10, 2005, 01:50:47 PM »

HI!

OK, I have done all that (wxGTK 2.5.4 with unicode and amule cvs) and amule basically works. I can now enter Umlauts into the search field (although if I just enter "รค", it seems to find ALL files).

But it now does not display the files with Umlauts in Shared Files at all. I get this error:
No permisions to open [SNIP]

Of course the permissions are correct:
ls -la [SNIP]

-rw-r--r--  1 thomas users 530499584 2005-02-24 15:57 [SNIP]

Looks like it is not truly Unicode-capable.

Thomas

EDIT: Snipped copyrighted stuff, you naughty boy!
« Last Edit: March 10, 2005, 02:28:51 PM by sidamos »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #7 on: March 10, 2005, 03:08:17 PM »

ohoh I think I forgot the unicode bug in wx  :]
so its not amule which is making the mistake its wx, but phoenix is working on a workaround patch for the unicode problem from wx atm.
but before 2.5.4 it worked i had also german files in my shares and no problems..

but the display bugs should be gone now atleast right?

about the search i have to try at home myself, dont remember...but i am at work atm

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

sidamos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
Re: Problems with UTF-8 filenames
« Reply #8 on: March 10, 2005, 03:22:12 PM »

HI!

Yes, typing Umlauts in the GUI (search field) now works OK.

Did you have UTF-8 filenames and it worked?

Should I use a different wx version?

Thomas
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #9 on: March 10, 2005, 03:23:46 PM »

well yes I had unicocde filenames and it worked...but atm I dont have any so I forgot about that its brocken with 2.5.4...

if you want you can try 2.5.3 I am pretty sure it worked there

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

sidamos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
Re: Problems with UTF-8 filenames
« Reply #10 on: March 10, 2005, 04:14:36 PM »

HI!

I redid everything with wx 2.5.3 and got the same permissions error.

Thomas
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #11 on: March 10, 2005, 04:18:01 PM »

I will check in 2h when I am back from work...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #12 on: March 10, 2005, 06:31:02 PM »

hum looks like you are right  ;(
its definetly brocken now...I add a bug report
thnx for your help

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problems with UTF-8 filenames
« Reply #13 on: March 10, 2005, 07:33:32 PM »

Here works ok.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Problems with UTF-8 filenames
« Reply #14 on: March 10, 2005, 08:40:12 PM »

I changed my local to en_En.UTF-8
but that did not help aswell...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."
Pages: [1] 2