Fix ICU on Linux, and test it.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3343 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2016-09-19 13:02:54 +00:00
parent 143c3ab2d3
commit 599d9c9f45
3 changed files with 8 additions and 1 deletions

View File

@ -54,6 +54,7 @@ else:
os.path.join(v8, 'out/native/obj.target/src'),
os.path.join(uv, 'out/Debug/obj.target'),
])
env.Command('icudtl.dat', os.path.join(v8, 'out/native/icudtl.dat'), Copy("$TARGET", "$SOURCE"))
ldapEnv = env.Clone()
if sys.platform == 'win32':

View File

@ -63,7 +63,7 @@ int main(int argc, char* argv[]) {
int result = 0;
uv_setup_args(argc, argv);
TaskStub::initialize();
v8::V8::InitializeICU();
v8::V8::InitializeICUDefaultLocation(argv[0]);
gPlatform = v8::platform::CreateDefaultPlatform();
v8::V8::InitializePlatform(gPlatform);
v8::V8::Initialize();

6
tests/13-icu Normal file
View File

@ -0,0 +1,6 @@
cat > test.js << EOF
print("Hi");
print(parseInt("3").toLocaleString());
EOF
$TILDEFRIENDS test.js