ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50528] New: PropertyFile task mangles UTF-8 values
Date Wed, 29 Dec 2010 14:26:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50528

           Summary: PropertyFile task mangles UTF-8 values
           Product: Ant
           Version: 1.8.0
          Platform: PC
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Optional Tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mladen.maravic@beb4ch.com


Version 1.8.0 introduced the functionality of the propertyfile task that
retains the property file structure. This new functionality is turned on by
default.

When Ant processes the properties file using this new behaviour, this is what
happens to any encoded UTF-8 characters: 

Original properties file:

test.label = Naknada za blokadu ra\u010Duna

After propertyfile processing:

test.label=Naknada za blokadu ra\u00010duna

Notice the additional 00 in the UTF-8 code.

If we set the jdkproperties="true", we get the old behaviour, and the resulting
property file looks ok:

test.label=Naknada za blokadu ra\u010duna

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message