Menu

LookupError: unknown encoding: cp932

Help
2004-09-22
2013-04-03
  • Brian J. Mason

    Brian J. Mason - 2004-09-22

    G3 Torrent cannot load torrents which use directories when windows is running in Japanese mode.  This problem does not occur if the torrent only includes a single file without a directory.

    I have tried using the File> Add Torrent option in G3 as well as associating .torrent files with G3 and opening that way with the same result.  When a torrent is added, G3 prompts for a location to save to, then after selecting the desired location the status bar of G3 says "Could not start download".  The torrent is not added to the list at all.  The messages tab says:

    HH:MM:SS | [Error] Could not start download
    HH:MM:SS | [Error] Error during setup

    the file g3torrent.exe.log is created with the following text:

    Traceback (most recent call last):
      File "btsession.pyo", line 745, in Setup_Thread
      File "BitTorrent\download.pyo", line 200, in setup
    LookupError: unknown encoding: cp932

    I am running Windows 2003 Server Enterprise 5.2 (Build #3790) with the region for non-unicode programs set to Japanese. The last line of the log file indicates the problem might be with the codepage 932, which is japanese, so I set the region for non-unicode programs back to US English and the problem was solved... except I need that set to japanese for various other programs to function properly.

    Microsoft has a utility called AppLocale
    (http://www.microsoft.com/globaldev/tools/apploc.mspx)
    which forces programs to run under different codepages, and the utility usually solves problems like this.. however applocale did not work with G3.

    I re-created this situation on WindowsXP build 2600 with no service pack, again with service pack 1, and again with service pack 2. Along with a japanese build of WindowsXP

    The problem seems to be specifically related to the codepage G3 is running under.  In order for G3 to grow as a major client in the global torrent community I'd suggest the development team make an efffort to ensure G3 can function in a unicode environment.

     
    • Brian J. Mason

      Brian J. Mason - 2004-09-22

      My apologies, the above message applies to G3 Torrent v0.999a  Additional system specs available upon request if they are relevant.

       
    • d0c 54v4g3

      d0c 54v4g3 - 2004-09-22

      Hey kanji_man,

      I could be wrong (correct me if I am) but I think the distro of python that 999a was built with does not support the cp932 language codec hence g3 doesn't either. If you want to build in support for that you could look at:
      http://cjkpython.i18n.org/
      It's a mod for python 2.3 that installs support for the cp932 language codec. It will mean you will have to do your own build of 999a to test this - due to a lack of Japanese OS I can't check this for you.

      -d0c

       
    • Brian J. Mason

      Brian J. Mason - 2004-09-24

      Someone recently referred me to v1.0 RC1 at the link:

      http://prdownloads.sourceforge.net/g3torrent/g3torrent-1.0-RC1.exe?download

      And the problem appears to be fixed with this release :)

       

Log in to post a comment.