# HG changeset patch # User Laurens Holst # Date 1644699912 -3600 # Sat Feb 12 22:05:12 2022 +0100 # Node ID 1dcce6cbc0c695cf8160166e48c446931abeac6e # Parent 70c28b6728f36e25859d04ef5182533d0a02a479 SourceFile: Change the source file encoding from ISO-8859-1 to UTF-8. This is a back compat change, however the impact should be low; I don’t expect anyone to be using non-ASCII characters in strings, since no Z80 platform uses the ISO-8859-1 character encoding anyway. And for comments the file encoding does not really matter either way. diff --git a/CHANGES.md b/CHANGES.md --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ * The `'` character can now be written as `''` in character literals. * The `"` character can now be written as `""` in string literals. * Documented the `end` directive, supported since the initial release. + * The source file encoding is changed from ISO-8859-1 to UTF-8. Glass 0.5 — 2017-01-18 ---------------------- diff --git a/src/main/java/nl/grauw/glass/SourceFile.java b/src/main/java/nl/grauw/glass/SourceFile.java --- a/src/main/java/nl/grauw/glass/SourceFile.java +++ b/src/main/java/nl/grauw/glass/SourceFile.java @@ -15,7 +15,7 @@ public SourceFile(Path path) { this.path = path; try { - this.content = Files.readAllLines(path, Charset.forName("ISO-8859-1")); + this.content = Files.readAllLines(path, Charset.forName("UTF-8")); } catch (IOException e) { throw new AssemblyException(e); }