gcc shouldn't use utf8 backticks for quotes.

Often I paste gcc output into email or cvs commit comments or bug reports, and
the backticks in like:

'foo' might used uninitialized

shows up with some garbage
!...@#foo!@#$ might be used uninitialized

Imho this code should be removed:

gcc/intl.c

#if defined HAVE_LANGINFO_CODESET
      if (locale_utf8)
        {
          open_quote = "\xe2\x80\x98";
          close_quote = "\xe2\x80\x99";
        }
#endif
    }

Perhaps I need to:
.bashrc:
 export LOCALE=C

or somesuch..


Perhaps if gcc detects any characters over 127 in any of the source files or
perhaps headers, it could switch into this wierdo character set mode, but not
otherwise? (Given I don't control the headers, only my source, that may be
overly eager.)


-- 
           Summary: utf8 quotes in warnings make them look like garbage in
                    many contexts
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jay dot krell at cornell dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44310

Reply via email to