This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: thoughts on martin's proposed patch for GCC and UTF-8


    I think you may have missed a few things.  gas has no problem with
    symbols in UTF-8 (I am told).

GCC works with many assemblers.  I doubt that they all support UTF-8,
and it would be hard even to check them all.  So I think we will have
to mangle non-ASCII byte values somehow in the .s files, whether the
encoding used is UTF-8 or not.

Anyway, there are other reasons not to always use UTF-8.

      ascii <-> UTF-8 is a no-op, and gcc
    does not currently accept non-ASCII identifiers, so no existing code
    will be broken by the change.

This is true, but does not eliminate the problems.

      Second, we
    want to be able to link modules written in encoding X with other
    modules in encoding Y.

This is a useful feature.  However, not needing to specify what
encoding the file is in is also a useful feature.

These two features are inherently incompatible, so perhaps we should
give the user a choice, through an option.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]