From 9f20ad65a99061b71e99a5d57c86760223c861cc Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Wed, 11 Sep 2024 22:19:02 +0800 Subject: [PATCH] uni-algo: improve test The escape sequence is supposed to be handled by the C++ compiler, not Ruby. Hopefully also fixes a peculiar bottling issue at https://github.com/Homebrew/homebrew-core/issues/184132#issuecomment-2342808498. --- Formula/u/uni-algo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/u/uni-algo.rb b/Formula/u/uni-algo.rb index 66dfa20dca05b..86c95e25a3ec5 100644 --- a/Formula/u/uni-algo.rb +++ b/Formula/u/uni-algo.rb @@ -35,7 +35,7 @@ def install (testpath/"utf8_norm.cpp").write <<~EOS #include int main() { - return (una::norm::to_nfc_utf8("W\u0302") == "Ŵ") ? 0 : 1; + return (una::norm::to_nfc_utf8("W\\u0302") == "Ŵ") ? 0 : 1; } EOS