Issue #37 resolved

Directory encoding error while initializing the repo

Chia-Huan Wu
created an issue

platform: Windows XP (Traditional Chinese version)

how to reproduce:

  1. Create a directory which contains Chinese characters.

  2. In the directory, init the repo using TortoiseHG 1.9 with Mercurial 1.7.2

  3. The dialog contains invalid encoding, as attachment issue-29.png

  4. Press "Create" button, error message dialog appeard.

Thanks for your help. :) Looking forward to see the landing of TortoiseHG 2.0!!

Comments (5)

  1. Chia-Huan Wu reporter

    Sorry, forgot to attach the error message:

    ** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues
    ** Mercurial version (1.7.2).  TortoiseHg version (1.9)
    ** Command: --nofork init
    ** CWD: C:\Documents and Settings\willie\桌面\新資料夾 (2)
    ** Extensions loaded: fixfrozenexts
    ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
    ** Windows version: (5, 1, 2600, 2, 'Service Pack 3')
    ** Processor architecture: x86
    Traceback (most recent call last):
      File "tortoisehg\hgqt\hginit.pyo", line 219, in init
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 33: ordinal not in range(128)
    
  2. Steve Borho

    I just pushed 5c1754106e86 which should help #3. #4 was the dialog dying while trying to tell you the init succeeded. I'm guessing we need to convert the destination path back to unicode before sprintf'ing it into the translated unicode string, but I'd prefer someone who could test this fix actually commit it.

  3. Log in to comment