Re: GCC

[prev] [thread] [next] [lurker] [Date index for 2004/08/24]

From: Aaron Crane
Subject: Re: GCC
Date: 11:59 on 24 Aug 2004
Peter Pentchev writes:
> Not quite: gcc -pedantic outputs a warning, and of course, adding
> -Werror would treat this as a fatal error.  However, there is no way
> that I can see of making gcc treat this particular construct as an error
> without a blanket -Werror.

-pedantic tells gcc to issue all diagnostics required by the standard;
-pedantic-errors makes those diagnostics fatal errors.  This still isn't
enough to find all uses of extensions, because not all uses of extensions
have diagnostics required by the standard.  But it's better than nothing.

> I've been toying for some time with the idea of hacking up a minimal
> charset detector, which reads a piece of text and determines whether it
> should really be marked up as windows-1251 or us-ascii will be enough.
> If someone knows of something that already does this and can be easily
> hooked into Mutt, please holler.

As I understand it, putting this in your .muttrc should work:

  set send_charset=us-ascii:windows-1251:utf-8

-- 
Aaron Crane
There's stuff above here

Generated at 15:00 on 24 Aug 2004 by mariachi 0.52