Rev 4207 | Rev 4210 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4207 | Rev 4209 | ||
---|---|---|---|
Line 266... | Line 266... | ||
266 | counter++; |
266 | counter++; |
267 | } |
267 | } |
268 | } |
268 | } |
269 | 269 | ||
270 | int retval; |
270 | int retval; |
271 | size_t size = str_lsize(str, precision); |
271 | size_t size = str_wsize(str, precision); |
272 | if ((retval = printf_putnchars_utf8(str, size, ps)) < 0) |
272 | if ((retval = printf_putnchars_utf8(str, size, ps)) < 0) |
273 | return -counter; |
273 | return -counter; |
274 | 274 | ||
275 | counter += retval; |
275 | counter += retval; |
276 | 276 | ||
Line 311... | Line 311... | ||
311 | counter++; |
311 | counter++; |
312 | } |
312 | } |
313 | } |
313 | } |
314 | 314 | ||
315 | int retval; |
315 | int retval; |
316 | size_t size = min(strw, precision) * sizeof(wchar_t); |
316 | size_t size = wstr_wlength(wstr, precision) * sizeof(wchar_t); |
317 | if ((retval = printf_putnchars_utf32(wstr, size, ps)) < 0) |
317 | if ((retval = printf_putnchars_utf32(wstr, size, ps)) < 0) |
318 | return -counter; |
318 | return -counter; |
319 | 319 | ||
320 | counter += retval; |
320 | counter += retval; |
321 | 321 |