Group :: Desenvolvimento/Funcional
RPM: ucblogo
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: FromUTF8.patch
Download
Download
Only in ucblogo-6.2.1_: aclocal.m4
Only in ucblogo-6.2.1_: compile
Only in ucblogo-6.2.1_: config.h.in
Only in ucblogo-6.2.1_: configure
Only in ucblogo-6.2.1_/csls: Makefile.in
Only in ucblogo-6.2.1_: depcomp
Only in ucblogo-6.2.1_/docs: Makefile.in
Only in ucblogo-6.2.1_/docs: texinfo.tex
Only in ucblogo-6.2.1_/helpfiles: ALL_NAMES
Only in ucblogo-6.2.1_/helpfiles: HELPCONTENTS
Only in ucblogo-6.2.1_/helpfiles: Makefile.in
Only in ucblogo-6.2.1_: install-sh
Only in ucblogo-6.2.1_/logolib: Makefile.in
Only in ucblogo-6.2.1_: logo-wx
Only in ucblogo-6.2.1_: Makefile.in
Only in ucblogo-6.2.1_: makehelp
Only in ucblogo-6.2.1_: missing
Only in ucblogo-6.2.1_/tests: Makefile.in
diff -ur ucblogo-6.2.1/wxTerminal.cpp ucblogo-6.2.1_/wxTerminal.cpp
--- ucblogo-6.2.1/wxTerminal.cpp 2021-12-14 11:52:00.000000000 +0000
+++ ucblogo-6.2.1_/wxTerminal.cpp 2021-12-14 13:01:16.912252420 +0000
@@ -190,12 +190,7 @@
// ----------------------------------------------------------------------------
char *new_c_string_from_wx_string(wxString wxStr) {
- char *cStr = (char *)malloc(sizeof(char) * (wxStr.length() + 1));
-
- strncpy(cStr, (const char*)wxStr.mb_str(), wxStr.length());
- cStr[wxStr.length()] = '\0';
-
- return cStr;
+ return strdup(wxStr.ToUTF8().data());
}
@@ -2788,6 +2783,6 @@
}
extern "C" void wx_chdir(char *file_path) {
- bool success = wxSetWorkingDirectory(wxString::FromAscii(file_path));
+ bool success = wxSetWorkingDirectory(wxString::FromUTF8(file_path));
assert(success);
}