Bug#279221: should transcde characters from utf-8 if the terminal is not utf-8 capable

2007-06-06 Thread Vincent Lefevre
Hi, On 2005-06-07 14:56:16 +0200, Samuel Thibault wrote: > The //translit suffixe tells iconv to translate everything. > > So w3m should do something like: > > #define TRANSLIT "//translit" > char *codeset = nl_langinfo(CODESET); > int len = strlen(codeset); > char *charset = malloc(len+strlen(T

Bug#279221: should transcde characters from utf-8 if the terminal is not utf-8 capable

2005-06-07 Thread Samuel Thibault
Hi, For this, iconv can be much helpful: $ hexdump foo 000 e2 80 94 0a $ iconv -f utf-8 -t latin1//translit < foo -- $ The //translit suffixe tells iconv to translate everything. So w3m should do something like: #define TRANSLIT "//translit" char *codes