Python UnicodeDecodeError:&x27;utf8';编解码器可以';运行webkit layouttests时不解码字节
我成功地构建了Webkit窗口(WinLauncher和DumpRenderTree exe可以正常工作。)Python UnicodeDecodeError:&x27;utf8';编解码器可以';运行webkit layouttests时不解码字节,python,utf-8,webkit,Python,Utf 8,Webkit,我成功地构建了Webkit窗口(WinLauncher和DumpRenderTree exe可以正常工作。) 我正在尝试在Windows7 64位上进行Webkit布局测试。 $。/Tools/Scripts/run webkit tests--debug--driver name=DumpRenderTree canvas 我有一些错误。 我想这可能与我的电脑设置有关,但不确定。 Webkit源代码没有问题,因为Webkit生成bot在layouttests中正常工作。 我的Python版本
我正在尝试在Windows7 64位上进行Webkit布局测试。
$。/Tools/Scripts/run webkit tests--debug--driver name=DumpRenderTree canvas
我有一些错误。我想这可能与我的电脑设置有关,但不确定。
Webkit源代码没有问题,因为Webkit生成bot在layouttests中正常工作。
我的Python版本:2.7.8(as)
Cygwin:已安装所有软件包
内部版本:VS2013-debug-win32
错误
Using port 'win-future'
Test configuration: <future, x86, debug>
Placing test results in /home/user/myWebkit/WebKitBuild/Debug/bin32/layout-test-results
Baseline search path: win -> mac-mountainlion -> mac -> generic
Using Debug build
Pixel tests disabled
Regular timeout: 35000, slow test timeout: 175000
Command line: /home/user/myWebkit/WebKitBuild/Debug/bin32/DumpRenderTree -
--lint-test-files warnings:
LayoutTests/platform/win/TestExpectations:996 Path does not exist.
fast/multicol/newmulticol/compare-with-old-impl/hit-test-above-or-below.html
LayoutTests/platform/win/TestExpectations:2898 Unrecognized expectation "Timeout]"
tables/mozilla/marvin/backgr_simple-table-column.html
Found 801 tests; running 801, skipping 0.
Checking build ...
UnicodeDecodeError raised: 'utf8' codec can't decode byte 0xb9 in position 374: invalid start byte
~ ~ ~ ~
我添加了以下CMD并运行了layouttests,但没有任何更改
export LC_ALL=ko_KR.UTF-8
或者ko_KR.utf8,“ko_KR.utf8”
你能把它们加起来检查一下吗?也许这会有所帮助可能是您的cygwin环境没有正确设置以支持utf-8。在cygwin中运行命令
locale
时会得到什么?
export LC_ALL=ko_KR.UTF-8
#-*-coding:utf-8-*-
import locale
locale.setlocale(locale.LC_ALL, '')
import os