FreeBSD Bugzilla – Attachment 170884 Details for
Bug 209907
_ascii_wcsnrtombs neglects to set src on EILSEQ error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test program that reproduces the issue
test_wcsrtombs.c (text/x-csrc), 312 bytes, created by
Roel Standaert
on 2016-05-31 17:09:04 UTC
(
hide
)
Description:
Test program that reproduces the issue
Filename:
MIME Type:
Creator:
Roel Standaert
Created:
2016-05-31 17:09:04 UTC
Size:
312 bytes
patch
obsolete
>#include <stdio.h> >#include <string.h> >#include <wchar.h> > >int main(int argc, char *argv[]) >{ > char out[64]; > wchar_t *in = L"Hello! \x20AC Hello!"; > const wchar_t *inptr = in; > mbstate_t state = {0}; > > size_t len = wcsrtombs(out, &inptr, sizeof(out), &state); > > printf("inptr - in: %d \n", inptr - in); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 209907
: 170884