piektd., 2019. g. 11. janv., plkst. 13:25 — lietotājs Roger Leigh (< rle...@codelibre.net>) rakstīja:
> My understanding is that this locale parameter only affects the > selection of the message catalogue used for printing messages. Since > there is only a single en_US message catalogue, overriding it won't do > anything useful. So in terms of UTF-8 processing, I think this is a red > herring. > That is a shame. It looked like a good option. > Which transcoder have you configured Xerces-C to use? I notice that GNU > iconv does some querying of the current charset with setlocale (but > doesn't use the simpler and more correct nl_langinfo). If you're using > gnuiconv, maybe try ICU instead? > I am using gnuiconv. Tried to use iconv, but that one silently drops non-ascii characters. My build system doesn't have ICU components. I guess I'll have to have a conversation with the responsible colleagues. For the software I maintain, we were forced to mandate the use of UTF-8 > locale for correct operation. > Thanks for the advice!