hgext/win32mbcs.py
changeset 8894 868670dbc237
parent 8866 87c30fb7e8df
child 8932 f87884329419
equal deleted inserted replaced
8893:cc0593af30d4 8894:868670dbc237
     7 #
     7 #
     8 # This software may be used and distributed according to the terms of the
     8 # This software may be used and distributed according to the terms of the
     9 # GNU General Public License version 2, incorporated herein by reference.
     9 # GNU General Public License version 2, incorporated herein by reference.
    10 #
    10 #
    11 
    11 
    12 """allow to use MBCS path with problematic encoding.
    12 '''allow the use of MBCS paths with problematic encoding
    13 
    13 
    14 Some MBCS encodings are not good for some path operations (i.e.
    14 Some MBCS encodings are not good for some path operations (i.e.
    15 splitting path, case conversion, etc.) with its encoded bytes. We call
    15 splitting path, case conversion, etc.) with its encoded bytes. We call
    16 such a encoding (i.e. shift_jis and big5) as "problematic encoding".
    16 such a encoding (i.e. shift_jis and big5) as "problematic encoding".
    17 This extension can be used to fix the issue with those encodings by
    17 This extension can be used to fix the issue with those encodings by
    34    HGENCODING.
    34    HGENCODING.
    35 
    35 
    36 Path encoding conversion are done between Unicode and
    36 Path encoding conversion are done between Unicode and
    37 encoding.encoding which is decided by Mercurial from current locale
    37 encoding.encoding which is decided by Mercurial from current locale
    38 setting or HGENCODING.
    38 setting or HGENCODING.
    39 
    39 '''
    40 """
       
    41 
    40 
    42 import os
    41 import os
    43 from mercurial.i18n import _
    42 from mercurial.i18n import _
    44 from mercurial import util, encoding
    43 from mercurial import util, encoding
    45 
    44