ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53212] New: Unicode copyright string is encoded incorrectly
Date Thu, 10 May 2012 07:49:03 GMT

          Priority: P2
            Bug ID: 53212
           Summary: Unicode copyright string is encoded incorrectly
          Severity: normal
    Classification: Unclassified
          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.

View raw message