0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 22:06:17 +00:00
termux-packages/disabled-packages/libfinalcut/examples-string-operations.cpp.patch

21 lines
601 B
Diff

--- a/examples/string-operations.cpp
+++ b/examples/string-operations.cpp
@@ -76,6 +76,7 @@
std::cout << " Locale: " << std::setlocale(LC_CTYPE, "")
<< std::endl;
+#ifndef __ANDROID__
if ( isatty(1) && ! std::strcmp(nl_langinfo(CODESET), "ANSI_X3.4-1968") )
{
// locale C -> switch from 7bit ascii -> latin1
@@ -83,6 +84,9 @@
}
std::cout << " Codeset: " << nl_langinfo(CODESET) << std::endl;
+#else
+ std::cout << " Codeset: " << "UTF-8" << std::endl;
+#endif
std::cout << "--------------[ FString test ]-----------------"
<< std::endl;
}