Re: [Mutt] #3150: garbage display with combining characters and
#3150: garbage display with combining characters and Mutt's wc functions
(--without-wc-funcs)
----------------------+-----------------------------------------------------
Reporter: vinc17 | Owner: pdmef
Type: defect | Status: accepted
Priority: major | Milestone: 1.6
Component: charset | Version: 1.5.20
Resolution: | Keywords: patch
----------------------+-----------------------------------------------------
Changes (by pdmef):
* keywords: => patch
* owner: mutt-dev => pdmef
* version: => 1.5.20
* status: new => accepted
Comment:
Can you please test the patch in
http://bitbucket.org/pdmef/muttfixesmq/src/tip/ticket-3150 on bitbucket?
The problem is that mutt doesn't know of charset extensions at all, but
the system does and thus wide character stuff magically/accidentally work
with extensions. However, with --without-wc-funcs mutt uses wide character
functions that make decisions on hard-coded characters/ranges ''if and
only if'' the charset is utf8 -- else they use the singlebyte system
functions like `isprint()` etc.
However, as mutt never knew about extensions it never classified
'utf-8//TRANSLIT' as utf8... which eventually makes it use single-byte
functions as said.
The patch tries to canonicalize the charset without extension, and uses
string prefix matching rather than exact matching when comparing character
sets.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3150#comment:10>
Mutt <http://www.mutt.org/>
The Mutt mail user agent