mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
Closes: https://bugs.gentoo.org/981432 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
19 lines
705 B
Diff
19 lines
705 B
Diff
--- a/BasicExcel.cpp 2026-11-06 17:43:16.315666145 +0100
|
|
+++ b/BasicExcel.cpp 2026-11-06 17:51:33.569871488 +0100
|
|
@@ -6479,7 +6479,14 @@
|
|
break;
|
|
|
|
case BasicExcelCell::WSTRING:
|
|
- os << cell.GetWString();
|
|
+ const wchar_t* wstr = cell.GetWString();
|
|
+ if (wstr) {
|
|
+ size_t len = wcslen(wstr);
|
|
+ vector<char> nstr(len * 4 + 1);
|
|
+ size_t converted = wcstombs(&nstr[0], wstr, nstr.size());
|
|
+ if (converted != (size_t)-1)
|
|
+ os << &nstr[0];
|
|
+ }
|
|
break;
|
|
}
|
|
return os;
|