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 6d5e2c9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions flake.lock

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

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
melange-compiler-libs = {
# this changes rarely, and it's better than having to rely on nix's poor
# support for submodules
url = "github:melange-re/melange-compiler-libs";
url = "github:melange-re/melange-compiler-libs/anmonteiro/propagate-format-string-delimiters";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
Expand Down
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 6d5e2c9

Please # to comment.