Re: Re: CppunitTest_stoc_uriproc failed on Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> ----- Original Message -----
> 
> From: "Stephan Bergmann" <sbergman@xxxxxxxxxx>
> To: "libreoffice@xxxxxxxxxxxxxxxxxxxxx" <libreoffice@xxxxxxxxxxxxxxxxxxxxx>
> Cc: "taichi" <20001722@xxxxxxxxxxx>
> Date: 2023/11/02 木 17:31
> Subject: Re: CppunitTest_stoc_uriproc failed on Windows
> 
> 
> On 11/2/23 08:41, taichi wrote:
> > On Windows machine, CppunitTest_stoc_uriproc keeps failed with
> [...]
> >> C:/sources/libo-core/stoc/test/uriproc/test_uriproc.cxx:1381:`anonymous namespace'::Test::testTranslator
> > equality assertion failed
> >> - Expected: file:///abc/%FEef
> >> - Actual  :
> >> - testTranslator, translateToExternal|7|file:///abc/%feef: TEST_ASSERT_EQUAL(OUString::createFromAscii(data[i].externalUriReference), translator->translateToExternal( OUString::createFromAscii(data[i].internalUriReference))): <file:///abc/%FEef> != <>
> 
> Ah, there's a call to osl_getThreadTextEncoding in the relevant code of 
> Translator::translateToExternal in 
> stoc/source/uriproc/ExternalUriReferenceTranslator.cxx.  Which means 
> that that code is subtly locale specific.  Interesting, I'll need to dig 
> into that.
> 
> What is your Windows locale, what is the text encoding used by that locale?
> 
> 

My Windows locale is ja_JP, and the text encodings used by that locale are UTF-8 and Shift JIS.





[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux