summaryrefslogtreecommitdiff
path: root/ACE/ace/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Process.cpp')
-rw-r--r--ACE/ace/Process.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ACE/ace/Process.cpp b/ACE/ace/Process.cpp
index 0b41e371af3..6a6f51a93b9 100644
--- a/ACE/ace/Process.cpp
+++ b/ACE/ace/Process.cpp
@@ -994,9 +994,15 @@ ACE_Process_Options::setenv (const ACE_TCHAR *variable_name,
ACE_NEW_RETURN (newformat, ACE_TCHAR[buflen], -1);
ACE_Auto_Basic_Array_Ptr<ACE_TCHAR> safe_newformat (newformat);
+# if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
+ const ACE_TCHAR *fmt = ACE_TEXT ("%ls=%ls");
+# else
+ const ACE_TCHAR *fmt = ACE_TEXT ("%s=%s");
+# endif
+
// Add in the variable name.
ACE_OS::sprintf (safe_newformat.get (),
- ACE_TEXT ("%s=%s"),
+ fmt,
variable_name,
format);