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: shareddir.dat encoding  (Read 6111 times)

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
shareddir.dat encoding
« on: May 04, 2004, 11:21:59 AM »

I know it's not a real bug nor amules fault, but maybe there are more people who will stumple about this.
With my move to suse 9.1 all filenames were re-encoded to uft8. amule can't keep the names of files with uft8 chars, and rehashes them every time it is started. That's not a big problem, but if you have dirs shared, which have uft8 chars in their names amule will ignore them. The file shareddir.dat has to be converted manually to utf8, then it works.
Now they only thing missing is a way to recode known.met, so amule doesn't have to hash the files again at each start. Just "recode" doesn't work, but maybe someone knows a trick.
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: shareddir.dat encoding
« Reply #1 on: May 04, 2004, 10:23:30 PM »

That's because unicode support hasn't been added yet to aMule, although it's under development :-(

"The file shareddir.dat has to be converted manually to utf8, then it works." <- you mean converting to UTF-8 worked? Or you mean you renamed all special charecters in filenames to ASCII characters and then editted shareddir.dat to point there?

Greetings
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: shareddir.dat encoding
« Reply #2 on: May 05, 2004, 02:05:57 AM »

> "The file shareddir.dat has to be converted manually to utf8, then it works." <- you mean converting to UTF-8 worked?

Yes, I have some shared dirs with german umlauts in their names (but the filenames in there are pure ascii), that weren't shared, even they were selected in amules preferences. So I got the idea to do a "recode iso-8859-15..utf8 shareddir.dat" and it helped. At least a little, a have a shared dir with french accents (and the files too, mostly) which is not shared, no matter what. Since I can't rename it (it's shared via NFS too) I just made a symlink.
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: shareddir.dat encoding
« Reply #3 on: June 11, 2004, 04:25:53 AM »

Could you please try with current CVS? It should be ok now.
I know it is ok now because you encoded it to UTF-(, but what'd be nice is if you could delte known.met and let aMule hash files again, and then see if it is working now with UTF-8 filenames.
Thanks a lot :-)
Greetings!
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: shareddir.dat encoding
« Reply #4 on: June 11, 2004, 10:59:07 AM »

Ok, I will try it when I get home. Is it ok when I use the same wxwidgets and wxbase 2.4.2 as for rc3 or do you recommend 2.5.1?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: shareddir.dat encoding
« Reply #5 on: June 11, 2004, 02:39:16 PM »

2.5.1
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: shareddir.dat encoding
« Reply #6 on: June 11, 2004, 03:49:22 PM »

I set up a completely new build dir, to prevent conflicts with rc3 or wx 2.4.2.
WxBase 2.5.1, WxGTK 2.5.1 and aMule.20040611 did I miss something (libcrypt is system-wide)?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: shareddir.dat encoding
« Reply #7 on: June 11, 2004, 04:23:15 PM »

that's ok. let's see how that does ;-)
thanks
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: shareddir.dat encoding
« Reply #8 on: June 11, 2004, 05:20:21 PM »

Ok, let's see: bad news: it seems to be impossible to compile wxBase on my system. good news: aMule cvs compiles and runs without it. btw, why do the part indicators in the download list look so ... ugly?
Logged

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: shareddir.dat encoding
« Reply #9 on: June 11, 2004, 05:31:26 PM »

u mean the transfer bars ?

go to prefs and move the slider a bit till they looks like u like it ;)

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: shareddir.dat encoding
« Reply #10 on: June 11, 2004, 05:50:43 PM »

Moving it to the middle will leave it probably the way you want it to be ;-)
Greetings!

P.S.: And thanx for reporting the unicode results
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: shareddir.dat encoding
« Reply #11 on: June 11, 2004, 06:00:18 PM »

I had already done that. But it was not aMule fault, my X server was somehow messed up, but a restart of vncviewer solved that.
But thanks anyway, aMule runs fine until now, just like rc3, except I don't have to asciice the files anymore... ;-)
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: shareddir.dat encoding
« Reply #12 on: June 11, 2004, 06:40:30 PM »

Thanks to you for reporting. It really makes me happy to know unicode is working fine :-)))))
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
Re: shareddir.dat encoding
« Reply #13 on: June 12, 2004, 01:53:17 AM »

When I select the shared dirs in preferences, utf8 folder names are still shown as garbage, at least some of them. But if you add the dirs in shareddir.dat manually, everything is fine.
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
crash
« Reply #14 on: June 12, 2004, 10:10:14 AM »

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1086591232 (LWP 32626)]
0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348)
    at updownclient.h:298
298             uint8           GetDownloadState() const        { return m_nDown
loadState; }
(gdb) bt
#0  0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348)
    at updownclient.h:298
#1  0x0823ede8 in CPartFile::Process (this=0x8991480, reducedownload=200,
    m_icounter=1 '\001') at PartFile.cpp:1595
#2  0x0819b367 in CDownloadQueue::Process (this=0x87fd2b0)
    at DownloadQueue.cpp:373
#3  0x082adc7c in CamuleApp::OnCoreTimer (this=0x85ee898) at amule.cpp:1710
#4  0x4046d6e4 in wxAppConsole::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#5  0x404f8270 in wxEvtHandler::ProcessEventIfMatches ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#6  0x404f9610 in wxEventHashTable::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#7  0x404f96ea in wxEvtHandler::ProcessEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#8  0x40320e74 in wxTimerBase::Notify ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#9  0x4023e629 in timeout_callback ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#10 0x406eb8e3 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#11 0x406ebfbb in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#12 0x406ec8b7 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#13 0x406ec98f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
---Type to continue, or q to quit---
#14 0x405f1c4f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#15 0x402348d9 in wxEventLoop::Run ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#16 0x402af29d in wxAppBase::MainLoop ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#17 0x402af0fe in wxAppBase::OnRun ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#18 0x404aa953 in wxEntry () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#19 0x082a7a5c in main (argc=1, argv=0xbfffefa4) at amule.cpp:152
(gdb) bt full
#0  0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348)
    at updownclient.h:298
No locals.
#1  0x0823ede8 in CPartFile::Process (this=0x8991480, reducedownload=200,
    m_icounter=1 '\001') at PartFile.cpp:1595
        cur_src = (CUpDownClient *) 0x348
        it = { = {
    _M_node = 0x8a02170}, }
        old_trans = 2
        dwCurTick = 393501338
#2  0x0819b367 in CDownloadQueue::Process (this=0x87fd2b0)
    at DownloadQueue.cpp:373
        cur_file = (class CPartFile *) 0x8991480
        i = 18
        size = 36
        downspeed = 200
#3  0x082adc7c in CamuleApp::OnCoreTimer (this=0x85ee898) at amule.cpp:1710
        msPrev1 = 22614232
        msPrev5 = 22610540
        msPrevSave = 22576846
        msCur = 22615251
#4  0x4046d6e4 in wxAppConsole::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
---Type to continue, or q to quit---
No symbol table info available.
#5  0x404f8270 in wxEvtHandler::ProcessEventIfMatches ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#6  0x404f9610 in wxEventHashTable::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#7  0x404f96ea in wxEvtHandler::ProcessEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#8  0x40320e74 in wxTimerBase::Notify ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#9  0x4023e629 in timeout_callback ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#10 0x406eb8e3 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#11 0x406ebfbb in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#12 0x406ec8b7 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#13 0x406ec98f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0No symbol table info available.
#14 0x405f1c4f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#15 0x402348d9 in wxEventLoop::Run ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#16 0x402af29d in wxAppBase::MainLoop ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#17 0x402af0fe in wxAppBase::OnRun ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#18 0x404aa953 in wxEntry () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#19 0x082a7a5c in main (argc=1, argv=0xbfffefa4) at amule.cpp:152
No locals.
(gdb)
« Last Edit: June 12, 2004, 10:11:13 AM by nachbarnebenan »
Logged
Pages: [1] 2