Skip to content

Fix UTF-8 test on JDK6 #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2018
Merged

Fix UTF-8 test on JDK6 #190

merged 1 commit into from
Feb 16, 2018

Conversation

ashawley
Copy link
Member

In particular, on a Mac the file.encoding is MacRoman

scala> sys.props.get("file.encoding")
res0: Option[String] = Some(MacRoman)

The test better represents the file-based defect:

scala.xml.XML.save("foo.xml", xml)
scala.xml.XML.loadFile("foo.xml").toString

It will still fail before the original defect was fixed in e15ce87.

Fixes #189.

In particular, on a Mac the file.encoding is MacRoman

scala> sys.props.get("file.encoding")
res0: Option[String] = Some(MacRoman)
@SethTisue SethTisue merged commit ff9c21c into scala:master Feb 16, 2018
@ashawley ashawley deleted the fix-test-jdk6 branch February 16, 2018 18:38
@SethTisue
Copy link
Member

confirmed this now passes in the context of the 2.11.x JDK6 community build on my Mac.

@ashawley
Copy link
Member Author

Glad to hear it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scala.xml.XMLTestJVM fails on Scala 2.11 on Java 6
2 participants