https://issues.apache.org/bugzilla/show_bug.cgi?id=53212

          Priority: P2
            Bug ID: 53212
          Assignee: [email protected]
           Summary: Unicode copyright string is encoded incorrectly
          Severity: normal
    Classification: Unclassified
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 1.8.3
         Component: Core tasks
           Product: Ant

Attempt to embed this Copyright string into dll file which is build with Ant
does not work as expected: 
product.copyright=\u00a9 Copyright 20xx-20xx yyyyyyyyyyyyy \u2122

Binary dump of dll shows that Ant first converts these characters into UTF-8
and then encodes each individual UTF-8 byte into UTF-16 (as required by Windows
for contents of VersionInfo resource) 

So following mapping occurs: 
\u00a9 -> 0x00c2 0x00a9
\u2122 -> 0x00e2 0x201e 0x00a2

While I expect to get this (so it is interpreted properly by Windows):
\u00a9 -> 0x00a9
\u2122 -> 0x2122

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to