diff packaging/desktopshellrun.cpp @ 1158:ffdc8cba139a

(issue36) Add acp_to_wchar based on utf8_to_wchar
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Sep 2014 15:43:48 +0200
parents 4a17c9f977d0
children 12ed0b72e9f5
line wrap: on
line diff
--- a/packaging/desktopshellrun.cpp	Thu Sep 18 15:43:22 2014 +0200
+++ b/packaging/desktopshellrun.cpp	Thu Sep 18 15:43:48 2014 +0200
@@ -273,7 +273,9 @@
       goto done;
     }
 
-  wbuf = utf8_to_wchar((*stacktop)->text, strlen((*stacktop)->text));
+  /* For unicodensis this has to be utf8 to wchar */
+
+  wbuf = acp_to_wchar((*stacktop)->text, strlen((*stacktop)->text));
   if (!wbuf)
     {
       ERRORPRINTF ("Failed to convert argument to wchar. error = 0x%lx.", hr);
@@ -282,7 +284,7 @@
 
   if ((*stacktop)->next && (*stacktop)->next->text)
     {
-      params = utf8_to_wchar((*stacktop)->next->text, strlen((*stacktop)->next->text));
+      params = acp_to_wchar((*stacktop)->next->text, strlen((*stacktop)->next->text));
     }
 
   if (!shellexecute(shellDispatch, wbuf, params))

http://wald.intevation.org/projects/trustbridge/