Closed olivier-grech closed 1 year ago
Make sure boost.locale is compiled with ICU. conversion of ß to SS supported only in ICU backend
Independently of the result I get by compiling on my machine, could you clarify the discrepancy between the documentation and the example in the code?
Independently of the result I get by compiling on my machine, could you clarify the discrepancy between the documentation and the example in the code?
I see the source of the confusion. The part "where ß is replaced with SS" refers to the correct, i.e. expected behavior.
Fixing the example to read:
German grüßen would be incorrectly converted to GRÜßEN, while Boost.Locale converts it to GRÜSSEN where ß is replaced with SS.
I hope that's easier to understand.
This is much more clear, thanks.
This example (https://www.boost.org/doc/libs/1_71_0/libs/locale/doc/html/conversions.html) indicates that the correct case for the word "grüßen" is as follow:
However, the wording used in the example
examples/conversions.cpp
seems to indicate that replacing ß by SS is incorrect when using uppercase :I tried running this example (note that I used Boost 1.71), and this is the result I get:
...and now I'm even more confused. What is the actual expected behavior for this case?