Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/libbb/unicode.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1178 by niro, Wed Aug 18 21:56:57 2010 UTC revision 1179 by niro, Wed Dec 15 21:33:41 2010 UTC
# Line 131  size_t FAST_FUNC wcstombs(char *dest, co Line 131  size_t FAST_FUNC wcstombs(char *dest, co
131   size_t len = wcrtomb_internal(tbuf, wc);   size_t len = wcrtomb_internal(tbuf, wc);
132    
133   if (len > n)   if (len > n)
134   len = n;   break;
135   memcpy(dest, tbuf, len);   memcpy(dest, tbuf, len);
136   if (wc == L'\0')   if (wc == L'\0')
137   return org_n - n;   return org_n - n;
# Line 1006  static char* FAST_FUNC unicode_conv_to_p Line 1006  static char* FAST_FUNC unicode_conv_to_p
1006   }   }
1007   }   }
1008   if (stats)   if (stats)
1009   stats->byte_count = stats->unicode_count = (d - dst);   stats->byte_count = stats->unicode_count = stats->unicode_width = (d - dst);
1010   return dst;   return dst;
1011   }   }
1012    

Legend:
Removed from v.1178  
changed lines
  Added in v.1179