From d14b0cc738f1cf9e8e65ed120f486e2c1aa19a41 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Mon, 30 Sep 2024 09:41:19 +0200 Subject: [PATCH] tests: fix `-Winvalid-source-encoding` warnings in `path_recode` Signed-off-by: Yury V. Zaytsev --- tests/lib/vfs/path_recode.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/lib/vfs/path_recode.c b/tests/lib/vfs/path_recode.c index a6f6abe65..292323e85 100644 --- a/tests/lib/vfs/path_recode.c +++ b/tests/lib/vfs/path_recode.c @@ -101,14 +101,14 @@ static const struct test_path_recode_ds { { /* 0. */ "UTF-8", - "/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ", - "/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ", - "/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ" + "/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8", + "/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8", + "/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8" }, { /* 1. */ "UTF-8", "/#enc:KOI8-R/тСстовый/ΠΏΡƒΡ‚ΡŒ", - "/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ", + "/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8", "/#enc:KOI8-R/тСстовый/ΠΏΡƒΡ‚ΡŒ" }, { /* 2. */ @@ -119,9 +119,9 @@ static const struct test_path_recode_ds }, { /* 3. */ "KOI8-R", - "/#enc:UTF-8/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ", + "/#enc:UTF-8/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8", "/тСстовый/ΠΏΡƒΡ‚ΡŒ", - "/#enc:UTF-8/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ" + "/#enc:UTF-8/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8" }, { /* 4. Test encode info at start */ "UTF-8", @@ -192,13 +192,13 @@ static const struct test_path_to_str_flags_ds "/test1://user:passwd@host.name/#enc:KOI8-R/тСстовый/ΠΏΡƒΡ‚ΡŒ", VPF_NONE, VPF_RECODE, - "/test1://user:passwd@host.name/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ" + "/test1://user:passwd@host.name/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8" }, { /* 3. */ "/test1://user:passwd@host.name/#enc:KOI8-R/тСстовый/ΠΏΡƒΡ‚ΡŒ", VPF_NONE, VPF_RECODE | VPF_STRIP_PASSWORD, - "/test1://user@host.name/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ" + "/test1://user@host.name/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8" }, { /* 4. */ "/mock/home/test/dir", @@ -222,13 +222,13 @@ static const struct test_path_to_str_flags_ds "/mock/home/test1://user:passwd@host.name/#enc:KOI8-R/тСстовый/ΠΏΡƒΡ‚ΡŒ", VPF_NONE, VPF_STRIP_HOME | VPF_RECODE, - "~/test1://user:passwd@host.name/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ" + "~/test1://user:passwd@host.name/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8" }, { /* 8. */ "/mock/home/test1://user:passwd@host.name/#enc:KOI8-R/тСстовый/ΠΏΡƒΡ‚ΡŒ", VPF_NONE, VPF_STRIP_HOME | VPF_RECODE | VPF_STRIP_PASSWORD, - "~/test1://user@host.name/ΤΕΣΤΟΧΩΚ/ΠΥΤΨ" + "~/test1://user@host.name/\xD4\xC5\xD3\xD4\xCF\xD7\xD9\xCA/\xD0\xD5\xD4\xD8" }, }; /* *INDENT-ON* */