jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-1603

POM is not read using the right encoding

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0.1
  • Component/s: POM::Encoding
  • Labels:
    None
  • Complexity:
    Intermediate

Description

IIRC XML standard says that default encoding is UTF-8 for xml files

That can be overriden with
<?xml version="1.0" encoding="ISO-8859-1"?>

But files without header saved as UTF8 are not parsed in some systems (eg windows, solaris), while files saved as other encoding (I believe it was ansi) break under a Mac mini with yellowdog linux

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Carlos Sanchez added a comment - 22/Nov/05 1:19 PM

That mini uses IBM JDK (build 1.4.2, J2RE 1.4.2 IBM build cxppc32142-20050929 (SR3) (JIT enabled: jitc))

It also breaks under Pentium 4 with Linux RHEL 3.5, IBM's JDK 1.4.2 (as reported by a user in the mailing list)

Seems that common environment is the IBM JDK

Show
Carlos Sanchez added a comment - 22/Nov/05 1:19 PM That mini uses IBM JDK (build 1.4.2, J2RE 1.4.2 IBM build cxppc32142-20050929 (SR3) (JIT enabled: jitc)) It also breaks under Pentium 4 with Linux RHEL 3.5, IBM's JDK 1.4.2 (as reported by a user in the mailing list) Seems that common environment is the IBM JDK
Hide
Permalink
Brett Porter added a comment - 22/Nov/05 7:19 PM

sorry, but I think I twas breaking it with the Sun 1.5.0_05

Show
Brett Porter added a comment - 22/Nov/05 7:19 PM sorry, but I think I twas breaking it with the Sun 1.5.0_05
Hide
Permalink
Carlos Sanchez added a comment - 22/Nov/05 7:22 PM

yes, seems that IBM reads UTF8 (as it should be) and Sun other format

Show
Carlos Sanchez added a comment - 22/Nov/05 7:22 PM yes, seems that IBM reads UTF8 (as it should be) and Sun other format
Hide
Permalink
John Casey added a comment - 10/Dec/05 8:47 PM

encoding is used correctly to read the xml now, and that encoding is now attached to all model-class instances, so that the corresponding model writers can use it.

Show
John Casey added a comment - 10/Dec/05 8:47 PM encoding is used correctly to read the xml now, and that encoding is now attached to all model-class instances, so that the corresponding model writers can use it.

People

  • Assignee:
    John Casey
    Reporter:
    Carlos Sanchez
Vote (0)
Watch (1)

Dates

  • Created:
    17/Nov/05 2:00 PM
    Updated:
    16/Jun/07 6:05 PM
    Resolved:
    10/Dec/05 8:47 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.