- Fixed warnings in i18n patch (bug #203166).

This commit is contained in:
Tim Waugh 2006-08-24 16:01:11 +00:00
parent 4365a0d8e4
commit 1d72cf0b92
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -281,6 +281,7 @@ fi
%changelog
* Thu Aug 24 2006 Tim Waugh <twaugh@redhat.com>
- 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).