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?