From 7b6e527f440cd7e6f8be2b07cee320ee6ca18786 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:41:38 +0200 Subject: Adding upstream version 1.0.1. Signed-off-by: Daniel Baumann --- .../75 non ascii in ascii encoded configure file/config9.h.in | 1 + .../75 non ascii in ascii encoded configure file/meson.build | 10 ++++++++++ .../75 non ascii in ascii encoded configure file/test.json | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 test cases/failing/75 non ascii in ascii encoded configure file/config9.h.in create mode 100644 test cases/failing/75 non ascii in ascii encoded configure file/meson.build create mode 100644 test cases/failing/75 non ascii in ascii encoded configure file/test.json (limited to 'test cases/failing/75 non ascii in ascii encoded configure file') diff --git a/test cases/failing/75 non ascii in ascii encoded configure file/config9.h.in b/test cases/failing/75 non ascii in ascii encoded configure file/config9.h.in new file mode 100644 index 0000000..323bec6 --- /dev/null +++ b/test cases/failing/75 non ascii in ascii encoded configure file/config9.h.in @@ -0,0 +1 @@ +#define MESSAGE "@var@" diff --git a/test cases/failing/75 non ascii in ascii encoded configure file/meson.build b/test cases/failing/75 non ascii in ascii encoded configure file/meson.build new file mode 100644 index 0000000..26da80e --- /dev/null +++ b/test cases/failing/75 non ascii in ascii encoded configure file/meson.build @@ -0,0 +1,10 @@ +project('non acsii to ascii encoding') +# Writing a non ASCII character with a ASCII encoding should fail +conf9 = configuration_data() +conf9.set('var', 'ะด') +configure_file( + input : 'config9.h.in', + output : '@BASENAME@', + encoding : 'ascii', + configuration : conf9 +) diff --git a/test cases/failing/75 non ascii in ascii encoded configure file/test.json b/test cases/failing/75 non ascii in ascii encoded configure file/test.json new file mode 100644 index 0000000..27cb0ab --- /dev/null +++ b/test cases/failing/75 non ascii in ascii encoded configure file/test.json @@ -0,0 +1,8 @@ +{ + "stdout": [ + { + "match": "re", + "line": "test cases/failing/75 non ascii in ascii encoded configure file/meson\\.build:5:0: ERROR: Could not write output file .*[\\\\/]config9\\.h: 'ascii' codec can't encode character '\\\\u0434' in position 17: ordinal not in range\\(128\\)" + } + ] +} -- cgit v1.2.3