Re: short assumed (was: alternates (was: What should go into 1.5.7?))
On Tue, Feb 01, 2005 at 01:03:42AM +0100, Alain Bench wrote:
> On Monday, January 31, 2005 at 11:31:13 PM +0900, Tamotsu Takahashi wrote:
> > If you are in a hurry, please see
> > http://www.momonga-linux.org/~tamo/patch-1.5.7.tt+tamo.short_assumed_file_charset.2
>
> Quick check gives legacy perfect, Vincent mode perfect, my everyday
> settings OK. Bravo, well done. Still have to study masking on UTF-8:
> Seems to be a "?" or U+FFFD masking char minor inconsistency.
Hmm, I guess the problem is not in my code
but in mutt_convert_string().
===========================================================
--- charset.c.BAK 2005-02-02 23:25:35.766914584 +0900
+++ charset.c 2005-02-02 23:43:55.435739512 +0900
@@ -429,9 +429,7 @@
ICONV_CONST char **inrepls = 0;
char *outrepl = 0;
- if (mutt_is_utf8 (to))
- outrepl = "\357\277\275";
- else if (mutt_is_utf8 (from))
+ if (mutt_is_utf8 (from))
inrepls = repls;
else
outrepl = "?";
===========================================================
This allowed me to do the right thing on UTF-8 locale.
Could anyone explain what "\357\277\275" is?
Is it really necessary here?
--
tamo