Skip to content

Commit

Permalink
fix: preserve unicode format strings in JS output
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Dec 25, 2023
1 parent e8be507 commit 290ba3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ Unreleased
([#995](https://github.com/melange-re/melange/pull/995))
- PPXes will no longer see the internal `*j` delimiter in unicode strings
and can hook on either `j` or `js`
- Preserve unicode in format strings
([#1001](https://github.com/melange-re/melange/pull/1001))

2.2.0 2023-12-05
---------------
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/blackbox-tests/unicode-format-strings.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
Curry._1(Stdlib__Format.printf(/* Format */{
_0: {
TAG: /* String_literal */11,
_0: "\xe4\xbd\xa0 ",
_0: " ",
_1: {
TAG: /* String */2,
_0: /* No_padding */0,
_1: /* End_of_format */0
}
},
_1: "\xe4\xbd\xa0 %s"
_1: " %s"
}), "xx");
/* Not a pure module */
Expand Down
2 changes: 1 addition & 1 deletion vendor/melange-compiler-libs

0 comments on commit 290ba3a

Please # to comment.