Using www/newsboat 2.14.1_2 from ports.
Some texts do not appear correctly from the following source
Especially for the sections "Evangile...".
Where could the problem come from ?
Try using without 'config' file.
A config file with 'pager less' (or most) resolves the problem.
See : https://groups.google.com/forum/#!topic/newsboat/IhbsCs_NtFI
Another source with the same problem:
Hi, to narrow it down, have you tried to save the text and display it in another ncurses application like e.g. nano?
If you are on STABLE or CURRENT, have you tried using C.UTF-8 as LANG?
I am not even sure, if this really counts as a bug, as you are trying to display UTF-8 text on a locale that does not support UTF-8 (but I am not a locale expert).
Created attachment 203095 [details]
Proposition for utils::clean_nonprintable_characters()
I found that the remplacement char \uFFFD does not display correctly.
In utils::clean_nonprintable_characters(), I force \u00A0 (NO-BREAK SPACE) remplacement by \u0020.
In stfl, and via iconv, wstr2str utils::clean_nonprintable_curiously replaces space with \u00A0 (for example before ':'), which does not suit my case.
(In reply to moebius444 from comment #3)
I don't feel comfortable with adding this patch to ports. We might break some other stuff.
Since the issue is not seen on e.g. Linux, the problem could be in the way we build stfl.
The only other application using stfl in ports is kdbx-viewer, I'll try to reproduce the issue there and see how it behaves with these characters you mentioned.
Have you been able to get this characters to display properly by chaning the locale that you use?
I try to change locale with LANG=C.UTF-8 and for the other LC_ccc I export en_US.UTF-8. The result is the same : the text does not display correctly.
can you see if you have the same problem if you start newsboat like this?
env LANG= newsboat
The bug seems to be fixed on -CURRENT.
Can you try -CURRENT in a VM or somewhere and see if it fixes the issues for you also?