From 15b3bd1b535f0a0bf7a4e74975dbbdfe666d4801 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Mon, 18 Jun 2018 19:35:13 +1200 Subject: [PATCH] unicode escape sequence for libre office pwd -- to encode: copy the string into unicodelookup.com. Take the hex representation and pad to 4 characters with '0's, prefixing each character with '\u' --- tests/workbook/serialization_test_suite.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/workbook/serialization_test_suite.hpp b/tests/workbook/serialization_test_suite.hpp index 36de066d..0ab814b7 100644 --- a/tests/workbook/serialization_test_suite.hpp +++ b/tests/workbook/serialization_test_suite.hpp @@ -320,7 +320,7 @@ public: xlnt::workbook wb; const auto path = path_helper::test_file("6_encrypted_libre.xlsx"); xlnt_assert_throws(wb.load(path, "incorrect"), xlnt::exception); - xlnt_assert_throws_nothing(wb.load(path, u8"пароль")); + xlnt_assert_throws_nothing(wb.load(path, u8"\u043F\u0430\u0440\u043E\u043B\u044C")); // u8"пароль" } void test_decrypt_standard() @@ -645,7 +645,7 @@ public: void test_round_trip_rw_encrypted_libre() { - xlnt_assert(round_trip_matches_rw(path_helper::test_file("6_encrypted_libre.xlsx"), u8"пароль")); + xlnt_assert(round_trip_matches_rw(path_helper::test_file("6_encrypted_libre.xlsx"), u8"\u043F\u0430\u0440\u043E\u043B\u044C")); // u8"пароль" } void test_round_trip_rw_encrypted_standard()