Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
619944cf
Commit
619944cf
authored
Jan 23, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix str*coll functions behavior in C locale.
parent
34a47899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
string.c
dlls/msvcrt/string.c
+8
-0
No files found.
dlls/msvcrt/string.c
View file @
619944cf
...
...
@@ -489,6 +489,8 @@ int CDECL MSVCRT_strcoll_l( const char* str1, const char* str2, MSVCRT__locale_t
else
locinfo
=
locale
->
locinfo
;
if
(
!
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
])
return
strcmp
(
str1
,
str2
);
return
CompareStringA
(
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
],
0
,
str1
,
-
1
,
str2
,
-
1
)
-
CSTR_EQUAL
;
}
...
...
@@ -512,6 +514,8 @@ int CDECL MSVCRT__stricoll_l( const char* str1, const char* str2, MSVCRT__locale
else
locinfo
=
locale
->
locinfo
;
if
(
!
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
])
return
strcasecmp
(
str1
,
str2
);
return
CompareStringA
(
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
],
NORM_IGNORECASE
,
str1
,
-
1
,
str2
,
-
1
)
-
CSTR_EQUAL
;
}
...
...
@@ -536,6 +540,8 @@ int CDECL MSVCRT__strncoll_l( const char* str1, const char* str2, MSVCRT_size_t
else
locinfo
=
locale
->
locinfo
;
if
(
!
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
])
return
strncmp
(
str1
,
str2
,
count
);
return
CompareStringA
(
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
],
0
,
str1
,
count
,
str2
,
count
)
-
CSTR_EQUAL
;
}
...
...
@@ -559,6 +565,8 @@ int CDECL MSVCRT__strnicoll_l( const char* str1, const char* str2, MSVCRT_size_t
else
locinfo
=
locale
->
locinfo
;
if
(
!
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
])
return
strncasecmp
(
str1
,
str2
,
count
);
return
CompareStringA
(
locinfo
->
lc_handle
[
MSVCRT_LC_COLLATE
],
NORM_IGNORECASE
,
str1
,
count
,
str2
,
count
)
-
CSTR_EQUAL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment