FreeBSD Bugzilla – Attachment 171012 Details for
Bug 179721
[libc] [patch] char<->wchar_t mismatch in glob(3), fnmatch(3), regexec(3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Cleanup as suggested by ache@
locale-cleanup.diff (text/plain), 1.33 KB, created by
Pedro F. Giffuni
on 2016-06-04 15:20:18 UTC
(
hide
)
Description:
Cleanup as suggested by ache@
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2016-06-04 15:20:18 UTC
Size:
1.33 KB
patch
obsolete
>Index: lib/libc/locale/collate.h >=================================================================== >--- lib/libc/locale/collate.h (revision 301343) >+++ lib/libc/locale/collate.h (working copy) >@@ -128,7 +128,7 @@ > int __collate_equiv_value(locale_t, const wchar_t *, size_t); > void _collate_lookup(struct xlocale_collate *,const wchar_t *, int *, int *, > int, const int **); >-int __collate_range_cmp(struct xlocale_collate *, wchar_t, wchar_t); >+int __collate_range_cmp(struct xlocale_collate *, char_t, char_t); > size_t _collate_wxfrm(struct xlocale_collate *, const wchar_t *, wchar_t *, > size_t); > size_t _collate_sxfrm(struct xlocale_collate *, const wchar_t *, char *, >Index: lib/libc/locale/collcmp.c >=================================================================== >--- lib/libc/locale/collcmp.c (revision 301343) >+++ lib/libc/locale/collcmp.c (working copy) >@@ -41,14 +41,14 @@ > * Compare two characters using collate > */ > >-int __collate_range_cmp(struct xlocale_collate *table, wchar_t c1, wchar_t c2) >+int __collate_range_cmp(struct xlocale_collate *table, char_t c1, char_t c2) > { >- wchar_t s1[2], s2[2]; >+ char_t s1[2], s2[2]; > > s1[0] = c1; >- s1[1] = 0; >+ s1[1] = '\0'; > s2[0] = c2; >- s2[1] = 0; >+ s2[1] = '\0'; > struct _xlocale l = {{0}}; > l.components[XLC_COLLATE] = (struct xlocale_component *)table; > return (wcscoll_l(s1, s2, &l));
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179721
:
134969
|
170924
|
170955
|
170956
|
171012
|
171025
|
171026
|
171028