Created attachment 192415 [details] Test file with accent SUMMARY: Libreoffice gives a: (soffice:1159): Gtk-WARNING **: 17:18:05.556: Locale not supported by C library. Using the fallback 'C' locale. for some systems when trying to use en_SE.UTF-8 for "Time" (which should give you the ISO date format of YYYY-MM-DD). However the issue is that not all systems give this error, with some you don't fallback to the 'C' locale and you can get corrupt data. STEPS TO REPRODUCE: I'm only able to reproduce this on an "old" system that has been upgraded over the years. Following the same steps on a newly built system does not lead to the failure. Set up a "vanilla" locale, checking with locale (rather than localectl) Try "libreoffice --cat testfile.docx | od -c | more" Adjust the locale to include en_SE.UTF-8, either by setting the LC_TIME environment variable or choosing en_SE.UTF-8 in the KDE regional settings, again check with locale: Repeat the "libreoffice --cat testfile.docx | od -c | more" OBSERVED RESULTS: "libreoffice --cat ..." reads the given file and writes it to STDOUT as text (which should be UTF-8 encoded) If you are fortunate, you get: $ libreoffice --cat testdoc.docx | od -c 0000000 357 273 277 A T e s t F i l e : 0000020 D i f f i c u l t 303 251 \n \n or, if you are not so fortunate: $ libreoffice --cat testdoc.docx | od -c 0000000 A T e s t F i l e : D i f 0000020 f i c u l t 351 \n \n The latter with: $ locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_US.UTF-8 LC_TIME=en_SE.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_US.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_ALL= You can test whether the output is proper UTF-8 by piping into "iconv" $ libreoffice --cat testdoc.docx | iconv -f UTF-8 -t UTF-8 WISHED FOR RESULTS: This issue is likely dependent of the update history of the underlying system, however the text conversion should *fail* rather than output "corrupt" UTF-8. It may be that this extra bulletproofing has been done in later releases, it would be nice to have confirmation VERSION: LibreOffice 7.3.7.2 30(Build2) in Neon (on Ubuntu 22.04 LTS)
(In reply to Tagwerk from comment #0) > It may be that this extra bulletproofing has been done in later > releases, it > would be nice to have confirmation You can always quickly check with an appimage: https://www.libreoffice.org/download/appimage/
Dear Tagwerk, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug