comparison hgext/win32mbcs.py @ 8714:505a96cbc923

Add cp950 as problematic encoding which is used in chinese windows.
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Thu, 04 Jun 2009 21:23:31 +0900
parents aea3a23151bd
children bf17aeafb869
comparison
equal deleted inserted replaced
8713:de6bb29e208a 8714:505a96cbc923
107 107
108 # codec and alias names of sjis and big5 to be faked. 108 # codec and alias names of sjis and big5 to be faked.
109 problematic_encodings = '''big5 big5-tw csbig5 big5hkscs big5-hkscs 109 problematic_encodings = '''big5 big5-tw csbig5 big5hkscs big5-hkscs
110 hkscs cp932 932 ms932 mskanji ms-kanji shift_jis csshiftjis shiftjis 110 hkscs cp932 932 ms932 mskanji ms-kanji shift_jis csshiftjis shiftjis
111 sjis s_jis shift_jis_2004 shiftjis2004 sjis_2004 sjis2004 111 sjis s_jis shift_jis_2004 shiftjis2004 sjis_2004 sjis2004
112 shift_jisx0213 shiftjisx0213 sjisx0213 s_jisx0213''' 112 shift_jisx0213 shiftjisx0213 sjisx0213 s_jisx0213 950 cp950 ms950 '''
113 113
114 def reposetup(ui, repo): 114 def reposetup(ui, repo):
115 # TODO: decide use of config section for this extension 115 # TODO: decide use of config section for this extension
116 if not os.path.supports_unicode_filenames: 116 if not os.path.supports_unicode_filenames:
117 ui.warn(_("[win32mbcs] cannot activate on this platform.\n")) 117 ui.warn(_("[win32mbcs] cannot activate on this platform.\n"))