libtt: "%wc" is Microsoft extension, not supported in every Std C Library.
authorJon Trulson <jon@radscan.com>
Wed, 8 Aug 2012 18:35:49 +0000 (12:35 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 8 Aug 2012 18:35:49 +0000 (12:35 -0600)
commit0f313d1cb8806e078117d266c595e5122c000dc1
treec96c2352d69f923ebe803fcbdd96df7d57262cfd
parentf9c2b3184e84ca81401d286f838d08711a210801
libtt: "%wc" is Microsoft extension, not supported in every Std C Library.

Patch from Douglas Mencken <dougmencken@gmail.com>:

"%wc" is Microsoft extension, not supported in every Std C Library. So
if we don't want to print "%wc%wc%wc%wc%..." instead of real chars, we
shall not use it.

Before:

%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wcession[28326]:
_Tt_s_session::s_init(): 1051 (TT_ERR_INTERNAL)!
%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wcession[28326]: waitpid():
No child processes
%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wcession[28326]: child
ttsession exited with status 1

After:

/usr/dt/bin/ttsession[12397]: _Tt_s_session::s_init(): 1051 (TT_ERR_INTERNAL)!
/usr/dt/bin/ttsession[12397]: waitpid(): No child processes
/usr/dt/bin/ttsession[12397]: child ttsession exited with status 1
cde/lib/tt/lib/util/tt_string.C