This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Patch to change %` %' to %< %>


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

| On Sat, 29 May 2004, Gabriel Dos Reis wrote:
| 
| >   (a) we're using %< and %> precisely for quoting, therefore
| >       plain apostroph could not be mistaken for a quoting sign in both
| >       translated and untranslated messages.
| > 
| >   (b) is %' is synonymous for %>, does not that confuse the whole
| >       distinction we're making clear with %< and %> notation?
| > 
| > What am I missing?  
| 
| Sometimes messages may contain an ASCII (neutral) apostrophe, U+0027 (for
| example, when referring to character constants).  Sometimes they contain
| an apostrophe as an English punctuation mark, U+2019.  In a UTF-8 locale
| we can produce better quality output by distinguishing these.  Doing so
| requires distinguishing them in the source; we can't just transliterate
| one into the other.
| 
| That %' is a synonym for %> is an accident of implementation, as
| apostrophe and close-quote are the same character in English and %' is
| only for use in untranslated messages.  They are synonyms in
| implementation but not in the way they are intended to be used.

Then, a comment to that effect (in %' documentation) would be helpful;
int particular, I would not describe %' as synonymous of %>.
With that change, the patch is OK.

Thanks for your patience.

-- Gaby


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