1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #38 resolved

Several error message while commiting new files using Chinese name

Chia-Huan Wu
created an issue

platform: Windows XP (Traditional Chinese version)

Please see the attachments:

  1. issue-32.png

I created a repo at C:\test, added a file using Chinese name, and got a strange error: "[Errno 22] invalid mode ('r') or filename: blah blah"

  1. issue-34.png

While commiting the files, got another error message, which says, "許功蓋.txt: file name, directory name, or disk label syntax error." (translated to English)

BTW, all the error I reported so far does not appear in TortoiseHG 1.1.7.

Comments (8)

  1. Chia-Huan Wu reporter

    Yeah, I know this extension, but since I don't hit any problems while using TortoiseHG 1.1.7 without win32mbcs extension enabled, I wonder if this situation is a bug or not. :)

    Anyway, I confirmed that TortoiseHG 1.9 works fine with win32mbcs extension enabled, Thanks.

  2. Toshi MARUYAMA

    "許","功",蓋" in big5 have '0x5c' at second byte.

    $ LANG=ja_JP.UTF-8 python
    Python 2.6.2 (r262:71600, Jun  4 2010, 18:28:04) 
    [GCC 4.4.3 20100127 (Red Hat 4.4.3-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> s = "許功蓋.txt"
    >>> s1 = unicode(s, 'utf8').encode('big5')
    >>> s1
    >>> s2 = unicode(s, 'utf8').encode('big5').encode("hex_codec")
    >>> s2
  3. Chia-Huan Wu reporter

    Ok, now I'll make the conclusion:

    1. TortoiseHG 1.1.7 works fine without win32mbcs extension enabled .

    2. TortoiseHG 1.9 works fine with win32mbcs extension enabled .

    IMHO, I think TortoiseHG 1.9 is more consistent than 1.1.7, because Traditional Chinese users usually need win32mbcs enabled in CLI mode. :)

  4. Chia-Huan Wu reporter

    Ah, my bad, I forgot to mention that TortoiseHG 1.1.7 does not work properly while win32mbcs extension being enabled, at least on my all windows environment...

  5. Log in to comment