Closed eoudejans closed 7 months ago
but from_utf('ABCDEFG')
works properly on OVSRV07.
Added item: /String/UnTiled/from_utf/testOC
To Operator.dms which tests:
parameter<bool> testOC:= from_utf(Source/special_characters/OC) == 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
Where Source/special_characters/OC is defined as:
parameter<string> OC := 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; // Ordinary Characters
Stepping in function from_utf it became clear that the ICU backend was used in the failing case.
After clean install of dependencies via vcpkg, and making sure that boost-locale icu backend was not installed via vcpkg list icu
that returned empty the problem is resolved:
See also #144
Possibly related: https://github.com/boostorg/locale/issues/61
All unit tests now work after removing boost-locale icu backend. It turned out this backend caused empty returns on utf8 to CP1250 conversion using boost::locale::conv::from_utf.
Specifically:
from_utf('ÀÁÂÄÄÃÅ')
results in an empty string when Built on OVSRV07, and 'AAAAAAA' when built on other machines.