<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-02 21:10 GMT+08:00 Piotr Caban <span dir="ltr"><<a href="mailto:piotr.caban@gmail.com" target="_blank">piotr.caban@gmail.com</a>></span>:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>On 05/02/14 14:10, Piotr Caban wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On 05/02/14 06:22, Shuai Meng wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
testbot:<a href="https://newtestbot.winehq.org/JobDetails.pl?Key=6731" target="_blank">https://newtestbot.<u></u>winehq.org/JobDetails.pl?Key=<u></u>6731</a><br>
<br>
Changelog:<br>
   added more tests on object;<br>
   changed the implemention of some tests that caused "Err.number = 0"<br>
   rearranged the order of tests<br>
---<br>
  dlls/vbscript/global.c      | 41 ++++++++++--------------------<u></u>-----<br>
  dlls/vbscript/tests/api.vbs | 53<br>
++++++++++++++++++++++++++++++<u></u>+++++++++++++++<br>
  2 files changed, 65 insertions(+), 29 deletions(-)<br>
<br>
</blockquote>
The tests are failing on wine on polish locale:<br>
<br>
LC_ALL=pl_PL make test<br>
../../../tools/runtest -q -P wine -T ../../.. -M vbscript.dll -p<br>
<a href="http://vbscript_test.exe.so" target="_blank">vbscript_test.exe.so</a> run && touch run.ok<br>
fixme:thread:<u></u>GetThreadUILanguage : stub, returning default language.<br>
run.c:2102: Tests skipped: Skipping some tests in non-English locale<br>
fixme:vbscript:parse_script parser failed around L"<!--"<br>
fixme:vbscript:do_icall L"y" not found<br>
fixme:vbscript:DispatchEx_<u></u>InvokeEx no letter/setter<br>
run.c:1917: Test failed: expected global_success_d<br>
run.c:1918: Test failed: expected global_success_i<br>
run.c:1920: Test failed: parse_script failed: 800a000d<br>
fixme:vbscript:ClassFactory_<u></u>QueryInterface<br>
(0x7e2462ec)->({342d1ea0-ae25-<u></u>11d1-89c5-006008c3fbfc} 0x33f7b0)<br>
fixme:vbscript:RegExp2_<u></u>QueryInterface<br>
(0x130a88)->({fc4801a3-2ba9-<u></u>11cf-a229-00aa003d7352} 0x33f74c)<br>
fixme:vbscript:interp_enumnext uninitialized<br>
fixme:vbscript:interp_newenum Unsupported for {VT_EMPTY}<br>
fixme:vbscript:interp_enumnext uninitialized<br>
fixme:vbscript:show_msgbox failed: 80004005<br>
fixme:vbscript:show_msgbox blocked<br>
make: *** [run.ok] Błąd 3<br>
</blockquote></div></div>
The tests are also failing on windows with polish locale. It's caused by different decimal separator. Please disable this tests on non-english locale:<br>
Call ok(CBool("0.1") = True, "CBool(""0.1"") = " & CBool("0.1"))<br>
Call ok(getVT(CBool("0.1")) = "VT_BOOL", "getVT(CBool(""0.1"")) = " & getVT(CBool("0.1")))<br>
<br>
Also it turns out that "Prawda" string (True translated to polish) is working on windows with polish locale. This means that you were right using VARIANT_LOCALBOOL flag in VariantChangeType. Sorry for that.<br>



<br>
Thanks,<br>
Piotr<br></blockquote><div> </div></div>Well, about two weeks ago I tested CStr(True) = "True" on windows with different locales, and I'd like to share the results. Maybe they can help in the future.</div><div class="gmail_extra">

<br></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:14px">When locale is zh_CN, ko_KR, ja_JP : </span>CStr(True) = "True" and CStr(False) = "False" can pass directly while others caused an error.<br style="font-family:arial,sans-serif;font-size:14px">

<span style="font-family:arial,sans-serif;font-size:14px">de_DE:</span>CStr(True) =<span style="font-family:arial,sans-serif;font-size:14px"> "Wahr"; </span>CStr(False) =<span style="font-family:arial,sans-serif;font-size:14px"> "Falsch"</span><br style="font-family:arial,sans-serif;font-size:14px">

<span style="font-family:arial,sans-serif;font-size:14px">ru_RU:  </span>CStr(True) =<span style="font-family:arial,sans-serif;font-size:14px"> "\0418\0441\0442\38\043d\0430"; </span>CStr(False) =<span style="font-family:arial,sans-serif;font-size:14px"> "\041b\043e\0436\044c"</span><br style="font-family:arial,sans-serif;font-size:14px">

<span style="font-family:arial,sans-serif;font-size:14px">pl_PL: </span>CStr(True) =<span style="font-family:arial,sans-serif;font-size:14px"> "Prawda"; </span>CStr(False) =<span style="font-family:arial,sans-serif;font-size:14px"> "Fa\0142sz"</span></div>

<div class="gmail_extra">fr_FR : CStr(True) =<span style="font-family:arial,sans-serif;font-size:14px"> "</span><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">Vrai</span><span style="font-family:arial,sans-serif;font-size:14px">"; </span><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">CStr(False) = "Faux"</span></div>
<div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br></span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">Thanks.</span></div>
<div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"> </span></div></div>