diff options
Diffstat (limited to 'cpukit/libmisc/shell/hexdump-conv.c')
-rw-r--r-- | cpukit/libmisc/shell/hexdump-conv.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/hexdump-conv.c b/cpukit/libmisc/shell/hexdump-conv.c index 44390baa32..95d8a87974 100644 --- a/cpukit/libmisc/shell/hexdump-conv.c +++ b/cpukit/libmisc/shell/hexdump-conv.c @@ -142,7 +142,15 @@ retry: pad = 3 - width; if (pad < 0) pad = 0; - (void)printf("%*s%lc", pad, "", wc); + #if defined(__rtems__) + { + wchar_t wc_tmp[2] = {0,0}; + wc_tmp[0] = wc; + (void)printf("%*s%lc", pad, "", wc_tmp); + } + #else + (void)printf("%*s%lc", pad, "", wc); + #endif pr->mbleft = clen - 1; } } else { |