BaseTools/UPT: Support Unicode path

Update the IpiDb.py to support Unicode path for localization

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Hess Chen
2017-04-01 13:33:04 +08:00
committed by Yonghong Zhu
parent 5692fa883f
commit 09e27ac559
2 changed files with 10 additions and 5 deletions

View File

@ -19,8 +19,13 @@ UPT
## import modules
#
from Core import FileHook
import locale
import sys
encoding = locale.getdefaultlocale()[1]
if encoding:
reload(sys)
sys.setdefaultencoding(encoding)
from Core import FileHook
import os.path
from sys import platform
import platform as pf