Ticket #3033 (closed defect: fixed)
text_enriched_handler and UTF-8 (and charsets as a whole)
| Reported by: | iazz | Owned by: | mutt-dev |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.6 |
| Component: | charset | Version: | |
| Keywords: | patch | Cc: |
Description
This handler treats each byte as a single character and thus incorrectly outputs for example bold letters in case UTF-8 is used for display. For character U+00C0 (LATIN CAPITAL LETTER A WITH GRAVE) and the bold attribute, it outputs "\303\b\303\200\b\200" instead of "\303\200\b\303\200".
Mutt's way of dealing with character sets seems completely broken anyway. It should treat all characters as wchar_t internally and convert them only on input/output. Besides, instead of specifying the displayed charset in the configuration file, shouldn't it rather rely on locale settings?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
