aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Trouble with UTF code on 1.2.5  (Read 6682 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Trouble with UTF code on 1.2.5
« on: February 10, 2004, 07:17:43 PM »

Here is a pic of CVS as of Feb 8th (Working fine)



and here the same pic in aMule-1.2.5



Seems there was a bad transfer in UTF-8 code. all accentuated "éèàùô..." letters are messed.


I gave a first look at the fr.po file, and it seems OK in Kbabel.
« Last Edit: February 10, 2004, 07:18:57 PM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

RicoH

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • http://ricoh.fr.st
Re: Trouble with UTF code on 1.2.5
« Reply #1 on: February 10, 2004, 07:57:36 PM »

That's exactly what I have too!
It's a pity!
If I find the solution, i'll give it here, but I hope you could do it too! ;)
Logged
"One day, men will look back and say I gave birth to the twentieth century."
Jack The Ripper

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Trouble with UTF code on 1.2.5
« Reply #2 on: February 10, 2004, 08:14:47 PM »

Problem is on code itself I'm afraid.


Maybe we should release a bugfix version very soon.
Logged

SlayeruleZ

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Trouble with UTF code on 1.2.5
« Reply #3 on: February 10, 2004, 08:41:43 PM »

I'm one of the 2 translators
I writed the po directly in UTF-8
but this can of bug can only be a code (utf-8 or ?) error
Logged
SlayeruleZ
flav_at_fr_dot_st

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Trouble with UTF code on 1.2.5
« Reply #4 on: February 10, 2004, 08:59:57 PM »

I agree, the fr.po file is ok. Do people have such trouble in let's say spanish or other accentuated locales ?
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Trouble with UTF code on 1.2.5
« Reply #5 on: February 10, 2004, 10:19:59 PM »

yes, they have.

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Trouble with UTF code on 1.2.5
« Reply #6 on: February 10, 2004, 10:46:03 PM »

plz replace your amule.cpp in aMule-1.2.5/src folder with this one and recompile aMule..
tell me if it's ok now please..  ;(

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Trouble with UTF code on 1.2.5
« Reply #7 on: February 10, 2004, 10:46:21 PM »

I have the same problem. (using the french version too).

Some explanations (for sure, devs know this problem) :

In UTF encoding you can get lots of differents languishes (diffrents charsets). To accomplish this some chars are represented by more than one byte. This is the case for all accents upon letters. To find the right char the first byte can be used to change the number of byte to be used to encode one char (the upper A with tilde on it is this byte).

The problem seems to be like this : the gui take one byte for one char wich doesn't work for UTF (but works for ISO encoding). As UTF is backward compatible with ASCII all english chars are encoded in only one byte. For this reason english is correct on display (and alla chars you can find in english alphabet).

My 2 cents...
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Trouble with UTF code on 1.2.5
« Reply #8 on: February 10, 2004, 11:23:09 PM »

i posted there a "new-old" amule.cpp . must be replaced in aMule-1.2.5/src folder .. should work then

greets

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Trouble with UTF code on 1.2.5
« Reply #9 on: February 11, 2004, 12:06:19 AM »

Th enew amule.cpp seems to do the trick. Thanks ;-)
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

RicoH

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • http://ricoh.fr.st
Re: Trouble with UTF code on 1.2.5
« Reply #10 on: February 11, 2004, 01:34:38 AM »

Thanx a lot! It works well now! :-D
Logged
"One day, men will look back and say I gave birth to the twentieth century."
Jack The Ripper

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Trouble with UTF code on 1.2.5
« Reply #11 on: February 11, 2004, 01:43:00 AM »

great .. :)

and sorry about.. :baby:

RicoH

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • http://ricoh.fr.st
Re: Trouble with UTF code on 1.2.5
« Reply #12 on: February 11, 2004, 01:59:46 AM »

No problem! You do a GREAT job!
Logged
"One day, men will look back and say I gave birth to the twentieth century."
Jack The Ripper

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Trouble with UTF code on 1.2.5
« Reply #13 on: February 11, 2004, 08:37:33 AM »

C'mon, guys, nobody is perfect, and we users for once felt we could be usefull ;-)

Thanks for your so great dedication.
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

Wallalai

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Trouble with UTF code on 1.2.5
« Reply #14 on: February 13, 2004, 11:15:30 AM »

Just emerge it on Gentoo with your fix. It works great. Thanks! ;)
Logged