ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53212] New: Unicode copyright string is encoded incorrectly
Date Thu, 10 May 2012 07:49:03 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53212

          Priority: P2
            Bug ID: 53212
          Assignee: notifications@ant.apache.org
           Summary: Unicode copyright string is encoded incorrectly
          Severity: normal
    Classification: Unclassified
          Reporter: fahrenheit2539@gmail.com
          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.

Mime
View raw message