[過去ログ]
バージョン管理システムについて語るスレ3 (1001レス)
バージョン管理システムについて語るスレ3 http://echo.5ch.net/test/read.cgi/tech/1228366972/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
545: デフォルトの名無しさん [] 2009/02/23(月) 17:33:03 parent: 7554:11a4eb81fb4f diff -r 11a4eb81fb4f -r 5dd432f98473 hgext/win32mbcs.py --- a/hgext/win32mbcs.py Tue Dec 30 22:10:41 2008 +0100 +++ b/hgext/win32mbcs.py Mon Feb 23 16:32:44 2009 +0900 @@ -44,6 +44,7 @@ import os from mercurial.i18n import _ from mercurial import util +from mercurial import extention, osutil def decode(arg): if isinstance(arg, str): @@ -108,6 +109,17 @@ sjis s_jis shift_jis_2004 shiftjis2004 sjis_2004 sjis2004 shift_jisx0213 shiftjisx0213 sjisx0213 s_jisx0213''' +def listdir_wrap(listdir, path, *args, **kwargs): + try: + path = decode(path) + if not path.endswith(os.sep): + path += os.sep + path = decode(path) + return listdir(path, *args, **kwards) + except: UnicodeError + raise util.Abort(_("[win32mbcs] filename conversion fail with" + " %s encoding\n") % (util._encoding)) + def reposetup(ui, repo): # TODO: decide use of config section for this extension if not os.path.supports_unicode_filenames: http://echo.5ch.net/test/read.cgi/tech/1228366972/545
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 456 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.018s