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: aMule-2.0.0rc5 Backtrace message :)  (Read 9626 times)

kinoko20

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
  • Nice 2 meet u :)
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #15 on: August 14, 2004, 12:42:28 PM »

phoenix,

amule in gtk1 can use korean perfectly.

because gtk1 use euc-kr charset.. i think ;)

So.... How about it?

Please see my attachment...
Logged
Hello :)

Avi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #16 on: August 16, 2004, 01:05:09 AM »

Could you take the string being looked for and use wxString::ToAscii()?  :]
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #17 on: August 16, 2004, 02:54:23 AM »

kinoko20,

The conversion you say that happens, from euc-kr to iso8859-1 is a wrong conversion. Afaik, there is no way to do this properly. Although I agree that it could work (can actually, because you say it works :) ), but certainly the conversion performed must be the trivial one (copy the same bytes and see what happens).

The problem in a unicode build is that the string type used in wx, and consequently in amule, uses unicode as its internal representation. So, what actually happens in a unicode build is:

gui(input) -> UTF-8(gtk2) -> unicode(wx) -> iso8859-1 ----> server

server ----> iso8859-1 -> unicode(wx) -> UTF-8(gtk2) -> gui(display)

In non-unicode builds, with gtk1, i am not sure, but i imagine that it happens like you showed in the picture, but notice that the conversion from euc-kr to iso8859-1 must not be exactly a conversion, once that it is actually impossible to do that. As I said, must be a simple byte copy.

It will probably work among machines that have the same locale as yours. And among clients that also incorrectly do the conversion like this.

Anyway, like I said before, I can't help you with that, because we are talking about network protocol. It is important that network code be an agreement and I can't implement something against it. I am not totally aware of the problems, Kry is the one discussing this with the other devs, when he is back he can certainly explain the matters to you better than I can.

What feature do you miss when you use amule with gtk1?

Cheers!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #18 on: August 16, 2004, 03:11:44 AM »

Avi,

In non-unicode build, ToAscii does nothing but return the internal buffer representation, and is equivalent to c_str(). In an unicode build it just transforms everry char above SCHAR_MAX, which is 127, to an underscore '_', so I don't think that one can benefit from that.

Cheers!
Logged

Avi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #19 on: August 16, 2004, 12:25:41 PM »

Quote
Originally posted by phoenix
Avi,

In non-unicode build, ToAscii does nothing but return the internal buffer representation, and is equivalent to c_str(). In an unicode build it just transforms everry char above SCHAR_MAX, which is 127, to an underscore '_', so I don't think that one can benefit from that.

Cheers!
I see... Thanks for the info.  :)
Logged

codewarrior2

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #20 on: August 17, 2004, 04:44:37 AM »

pheonix I was wondering how you get such detailed bt's. I have the enable-debug and disable optimise flags on my cvs build but I still do not seem to get the depth that you got on the bt.
Logged
Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety.
--Benjamin Franklin(?), circa 1759

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: aMule-2.0.0rc5 Backtrace message :)
« Reply #21 on: August 18, 2004, 12:03:00 PM »

codewarrior2,

This is a little off-topic here, but I'll try to be quick and not waste space. I searched for you yesterday on IRC, but you were not there at the moment.

I have both aMule and wxWidgets compiled for debug. My configure lines are:

1) For aMule: ./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-webservergui --enable-amulecmd --enable-amulecmdgui --enable-ccache --with-wx-config=/usr/local/wxWidgets-cvs/bin/wx-config

2) For wxWidgets: ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --disable-unicode --prefix=/usr/local/wxWidgets-cvs

Other questions about that, please call me on IRC, I think that in that matter we can be more productive there.

Cheers!
Logged
Pages: 1 [2]