From 1d72cf0b92864630dff59e29f7103ea5ec4b6130 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Aug 24 2006 16:01:11 +0000 Subject: - Fixed warnings in i18n patch (bug #203166). --- diff --git a/coreutils-i18n.patch b/coreutils-i18n.patch index fcb7aec..63c1e93 100644 --- a/coreutils-i18n.patch +++ b/coreutils-i18n.patch @@ -640,7 +640,7 @@ +print_char_multi (char c) +{ + static size_t mbc_pos = 0; -+ static unsigned char mbc[MB_LEN_MAX] = {'\0'}; ++ static char mbc[MB_LEN_MAX] = {'\0'}; + static mbstate_t state = {'\0'}; + mbstate_t state_bak; + wchar_t wc; @@ -650,7 +650,7 @@ + if (tabify_output) + { + state_bak = state; -+ mbc[mbc_pos++] = (unsigned char)c; ++ mbc[mbc_pos++] = c; + mblength = mbrtowc (&wc, mbc, mbc_pos, &state); + + while (mbc_pos > 0) diff --git a/coreutils.spec b/coreutils.spec index c413bd7..07bc7f6 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -281,6 +281,7 @@ fi %changelog * Thu Aug 24 2006 Tim Waugh +- Fixed warnings in i18n patch (bug #203166). - Fixed warnings in sysinfo patch (bug #203166). - Fixed warnings in selinux patch (bug #203166). - Fixed warnings in acl patch (bug #203166).