Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
git-mirror
/
glibc
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
7378b1f
argp
assert
benchtests
bits
catgets
conf
conform
crypt
csu
ctype
debug
dirent
dlfcn
elf
gmon
gnulib
grp
gshadow
hesiod
hurd
iconv
iconvdata
include
inet
intl
io
libidn
libio
locale
localedata
charmaps
locales
tests-mbwc
dat_isw-funcs.h
dat_iswalnum.c
dat_iswalpha.c
dat_iswcntrl.c
dat_iswctype.c
dat_iswdigit.c
dat_iswgraph.c
dat_iswlower.c
dat_iswprint.c
dat_iswpunct.c
dat_iswspace.c
dat_iswupper.c
dat_iswxdigit.c
dat_mblen.c
dat_mbrlen.c
dat_mbrtowc.c
dat_mbsrtowcs.c
dat_mbstowcs.c
dat_mbtowc.c
dat_strcoll.c
dat_strfmon.c
dat_strxfrm.c
dat_swscanf.c
dat_tow-funcs.h
dat_towctrans.c
dat_towlower.c
dat_towupper.c
dat_wcrtomb.c
dat_wcscat.c
dat_wcschr.c
dat_wcscmp.c
dat_wcscoll.c
dat_wcscpy.c
dat_wcscspn.c
dat_wcslen.c
dat_wcsncat.c
dat_wcsncmp.c
dat_wcsncpy.c
dat_wcspbrk.c
dat_wcsrtombs.c
dat_wcsspn.c
dat_wcsstr.c
dat_wcstod.c
dat_wcstok.c
dat_wcstombs.c
dat_wcswidth.c
dat_wcsxfrm.c
dat_wctob.c
dat_wctomb.c
dat_wctrans.c
dat_wctype.c
dat_wcwidth.c
tgn_funcdef.h
tgn_locdef.h
tsp_common.c
tst_funcs.h
tst_iswalnum.c
tst_iswalpha.c
tst_iswcntrl.c
tst_iswctype.c
tst_iswdigit.c
tst_iswgraph.c
tst_iswlower.c
tst_iswprint.c
tst_iswpunct.c
tst_iswspace.c
tst_iswupper.c
tst_iswxdigit.c
tst_mblen.c
tst_mbrlen.c
tst_mbrtowc.c
tst_mbsrtowcs.c
tst_mbstowcs.c
tst_mbtowc.c
tst_strcoll.c
tst_strfmon.c
tst_strxfrm.c
tst_swscanf.c
tst_towctrans.c
tst_towlower.c
tst_towupper.c
tst_types.h
tst_wcrtomb.c
tst_wcscat.c
tst_wcschr.c
tst_wcscmp.c
tst_wcscoll.c
tst_wcscpy.c
tst_wcscspn.c
tst_wcslen.c
tst_wcsncat.c
tst_wcsncmp.c
tst_wcsncpy.c
tst_wcspbrk.c
tst_wcsrtombs.c
tst_wcsspn.c
tst_wcsstr.c
tst_wcstod.c
tst_wcstok.c
tst_wcstombs.c
tst_wcswidth.c
tst_wcsxfrm.c
tst_wctob.c
tst_wctomb.c
tst_wctrans.c
tst_wctype.c
tst_wcwidth.c
tests
tst-fmon-locales
unicode-gen
ChangeLog
Depend
Makefile
README
SUPPORTED
bug-iconv-trans.c
bug-setlocale1-static.c
bug-setlocale1.c
bug-usesetlocale.c
collate-test.c
cs_CZ.in
da_DK.in
de_DE.in
dump-ctype.c
en_US.in
fr_FR.in
gen-locale.sh
hr_HR.in
show-ucs-data.c
si_LK.in
sort-test.sh
sv_SE.in
th_TH.in
tr_TR.in
tst-ctype-de_DE.ISO-8859-1.in
tst-ctype.c
tst-ctype.sh
tst-digits.c
tst-fmon.c
tst-fmon.data
tst-fmon.sh
tst-langinfo-static.c
tst-langinfo.c
tst-langinfo.sh
tst-leaks.c
tst-locale.sh
tst-mbswcs1.c
tst-mbswcs2.c
tst-mbswcs3.c
tst-mbswcs4.c
tst-mbswcs5.c
tst-mbswcs6.c
tst-numeric.c
tst-numeric.data
tst-numeric.sh
tst-rpmatch.c
tst-rpmatch.sh
tst-setlocale.c
tst-setlocale2.c
tst-setlocale3.c
tst-sscanf.c
tst-strfmon1.c
tst-trans.c
tst-trans.sh
tst-wctype.c
tst-wctype.input
tst-xlocale1.c
tst-xlocale2.c
xfrm-test.c
login
mach
malloc
manual
math
misc
nis
nptl
nptl_db
nscd
nss
po
posix
pwd
resolv
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
streams
string
sunrpc
sysdeps
sysvipc
termios
time
timezone
wcsmbs
wctype
.gitattributes
.gitignore
BUGS
CONFORMANCE
COPYING
COPYING.LIB
ChangeLog
ChangeLog.1
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.17
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.old-ports
ChangeLog.old-ports-aarch64
ChangeLog.old-ports-aix
ChangeLog.old-ports-alpha
ChangeLog.old-ports-am33
ChangeLog.old-ports-arm
ChangeLog.old-ports-cris
ChangeLog.old-ports-hppa
ChangeLog.old-ports-ia64
ChangeLog.old-ports-linux-generic
ChangeLog.old-ports-m68k
ChangeLog.old-ports-microblaze
ChangeLog.old-ports-mips
ChangeLog.old-ports-powerpc
ChangeLog.old-ports-tile
INSTALL
LICENSES
Makeconfig
Makefile
Makefile.in
Makerules
NAMESPACE
NEWS
PROJECTS
README
Rules
WUR-REPORT
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
cppflags-iterator.mk
extra-lib.mk
extra-modules.mk
libc-abis
o-iterator.mk
shlib-versions
test-skeleton.c
version.h
Breadcrumbs
glibc
/
localedata
/
tests-mbwc
/
dat_mbrlen.c
Blame
Blame
Latest commit
History
History
155 lines (152 loc) · 2.76 KB
Breadcrumbs
glibc
/
localedata
/
tests-mbwc
/
dat_mbrlen.c
Top
File metadata and controls
Code
Blame
155 lines (152 loc) · 2.76 KB
Raw
/* * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY * * FILE: dat_mbrlen.c * * MBRLEN: size_t mbrlen (const char *s, size_t n, mbstate_t *ps); */ /* * NOTE: * (1) A mbstate object is initialized for * every new data record by the test program. * * (2) USE_MBCURMAX is defined as a value of 99. * */ TST_MBRLEN tst_mbrlen_loc [] = { { { Tmbrlen, TST_LOC_de }, { { /*----------------- #01 -----------------*/ { { { 1, "", 0, 0, 0 }, { 1, "", 1, 0, 0 }, { 1, "\300", USE_MBCURMAX, 0, 0 }, } }, { { { 0, 1, -2, }, { 0, 1, 0, }, { 0, 1, 1, }, } } }, { /*----------------- #02 -----------------*/ { { { 1, "\300\001", 0, 0, 0 }, { 1, "\300\001", 1, 0, 0 }, { 1, "\317\001", USE_MBCURMAX, 0, 0 }, } }, { { { 0, 1, -2, }, { 0, 1, 1, }, { 0, 1, 1, }, } } }, { .is_last = 1 } } }, { { Tmbrlen, TST_LOC_enUS }, { { /*----------------- #01 -----------------*/ { { { 1, "A", 0, 0, 0 }, { 1, "A", 1, 0, 0 }, { 1, "A", USE_MBCURMAX, 0, 0 }, } }, { { { 0, 1, -2, }, { 0, 1, 1, }, { 0, 1, 1, }, } } }, { /*----------------- #02 -----------------*/ { { { 1, "\317\001", 0, 1, 0 }, { 1, "\317\001", 1, 1, 0 }, { 1, "\317\001", USE_MBCURMAX, 1, 0 }, } }, { { { 0, 1, -2, }, { EILSEQ, 1, -1, }, { EILSEQ, 1, -1, }, } } }, { .is_last = 1 } } }, { { Tmbrlen, TST_LOC_eucJP }, { { /*----------------- #01 -----------------*/ { { { 1, "\317\302", 1, 1, 1 }, { 0, "", 0, 1, 0 }, { 1, "\317\302", USE_MBCURMAX, 1, 1 }, } }, { { { 0, 1, -2, }, { 0, 1, -1, }, { 0, 1, 2, }, } } }, { /*----------------- #02 -----------------*/ { { { 1, "\317", 1, 1, 0 }, { 1, "\302", 1, 1, 0 }, { 1, "\317\302", USE_MBCURMAX, 0, 0 }, } }, { { { 0, 1, -2, }, /* XXX ISO C explicitly says that the return value does not XXX reflect the bytes contained in the state. */ { 0, 1, +1, }, { 0, 1, 2, }, } } }, { /*----------------- #03 -----------------*/ { { { 1, "\216\217", 0, 0, 0 }, { 1, "\216\217", 1, 0, 0 }, { 1, "\216\217", USE_MBCURMAX, 0, 0 }, } }, { { { 0, 1, -2, }, { 0, 1, -2, }, { EILSEQ, 1, -1, }, } } }, { .is_last = 1 } } }, { { Tmbrlen, TST_LOC_end } } };
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
You can’t perform that action at this time.