procps-wchar.patch 980 B

1234567891011121314151617181920212223242526272829
  1. --- procps-3.2.7/proc/escape.c 2005-01-06 07:50:26.000000000 +1100
  2. +++ procps-3.2.7.fixed/proc/escape.c 2008-09-09 11:55:57.000000000 +1000
  3. @@ -15,7 +15,7 @@
  4. #include "escape.h"
  5. #include "readproc.h"
  6. -#if (__GNU_LIBRARY__ >= 6)
  7. +#if (__GNU_LIBRARY__ >= 6) && (!defined(__UCLIBC__) || defined(__UCLIBC_HAS_WCHAR__))
  8. # include <wchar.h>
  9. # include <wctype.h>
  10. # include <stdlib.h> /* MB_CUR_MAX */
  11. @@ -23,7 +23,7 @@
  12. # include <langinfo.h>
  13. #endif
  14. -#if (__GNU_LIBRARY__ >= 6)
  15. +#if (__GNU_LIBRARY__ >= 6) && (!defined(__UCLIBC__) || defined(__UCLIBC_HAS_WCHAR__))
  16. static int escape_str_utf8(char *restrict dst, const char *restrict src, int bufsize, int *maxcells){
  17. int my_cells = 0;
  18. int my_bytes = 0;
  19. @@ -123,7 +123,7 @@
  20. "********************************"
  21. "********************************";
  22. -#if (__GNU_LIBRARY__ >= 6)
  23. +#if (__GNU_LIBRARY__ >= 6) && (!defined(__UCLIBC__) || defined(__UCLIBC_HAS_WCHAR__))
  24. static int utf_init=0;
  25. if(utf_init==0){