The xo_format_string_direct function loops forever never advancing the processed string pointer
when it encounters a character that makes mbrtowc fail. Make it emit '?' character instead, as
it seems this is what the code intent was, sans bugs.
Details
Details
Create file in UTF-8 locate, try to ls directory with that file under, say. KOI8-R locale. Observe ls getting unhappy without the patch. Observe it printing '?' with the patch.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable