Bugzilla – Attachment 618 Details for
Bug 3885
c16rtomb函数返回结果错误
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
复现用例c文件
c16rtomb.c (text/x-csrc), 504 bytes, created by
speacher
on 2023-01-30 16:57:39 UTC
(
hide
)
Description:
复现用例c文件
Filename:
MIME Type:
Creator:
speacher
Created:
2023-01-30 16:57:39 UTC
Size:
504 bytes
patch
obsolete
>#include <uchar.h> >#include <stddef.h> >#include <string.h> >#include <locale.h> >#include <errno.h> > >mbstate_t ps; >int main() >{ > char s[4]; > size_t bytes; > s[0] = 'X'; > s[1] = 'X'; > s[2] = 'X'; > s[3] = 'X'; > > memset( &ps, 0, sizeof( ps ) ); > > /* High Surrogate */ > bytes = c16rtomb( s, 0xD808, &ps ); > /* Function c16rtomb() should detect that > 0xD808 is a high surrogate as defined in C11 Standard, > Section 6.4.3 Paragraph 2, Footnote 73 */ > > return bytes; >}
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 3885
: 618