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
20b77f44
Commit
20b77f44
authored
Apr 15, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _configthreadlocale implementation.
parent
59c2201a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
2 deletions
+43
-2
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
locale.c
dlls/msvcrt/locale.c
+37
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+3
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
20b77f44
...
@@ -324,7 +324,7 @@
...
@@ -324,7 +324,7 @@
@ cdecl _close(long) msvcrt._close
@ cdecl _close(long) msvcrt._close
@ cdecl _commit(long) msvcrt._commit
@ cdecl _commit(long) msvcrt._commit
@ extern _commode msvcrt._commode
@ extern _commode msvcrt._commode
@
stub
_configthreadlocale
@
cdecl _configthreadlocale(long) msvcrt.
_configthreadlocale
@ cdecl _control87(long long) msvcrt._control87
@ cdecl _control87(long long) msvcrt._control87
@ cdecl _controlfp(long long) msvcrt._controlfp
@ cdecl _controlfp(long long) msvcrt._controlfp
@ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
@ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
...
...
dlls/msvcr90/msvcr90.spec
View file @
20b77f44
...
@@ -316,7 +316,7 @@
...
@@ -316,7 +316,7 @@
@ cdecl _close(long) msvcrt._close
@ cdecl _close(long) msvcrt._close
@ cdecl _commit(long) msvcrt._commit
@ cdecl _commit(long) msvcrt._commit
@ extern _commode msvcrt._commode
@ extern _commode msvcrt._commode
@
stub
_configthreadlocale
@
cdecl _configthreadlocale(long) msvcrt.
_configthreadlocale
@ cdecl _control87(long long) msvcrt._control87
@ cdecl _control87(long long) msvcrt._control87
@ cdecl _controlfp(long long) msvcrt._controlfp
@ cdecl _controlfp(long long) msvcrt._controlfp
@ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
@ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
...
...
dlls/msvcrt/locale.c
View file @
20b77f44
...
@@ -954,6 +954,43 @@ MSVCRT__locale_t _create_locale(int category, const char *locale)
...
@@ -954,6 +954,43 @@ MSVCRT__locale_t _create_locale(int category, const char *locale)
return
loc
;
return
loc
;
}
}
/* _configthreadlocale - not exported in native msvcrt */
int
CDECL
_configthreadlocale
(
int
type
)
{
thread_data_t
*
data
=
msvcrt_get_thread_data
();
int
ret
;
if
(
!
data
)
return
-
1
;
ret
=
(
data
->
locale
?
MSVCRT__ENABLE_PER_THREAD_LOCALE
:
MSVCRT__DISABLE_PER_THREAD_LOCALE
);
if
(
type
==
MSVCRT__ENABLE_PER_THREAD_LOCALE
)
{
if
(
!
data
->
locale
)
{
/* Copy current global locale */
data
->
locale
=
_create_locale
(
MSVCRT_LC_ALL
,
MSVCRT_setlocale
(
MSVCRT_LC_ALL
,
NULL
));
if
(
!
data
->
locale
)
return
-
1
;
}
return
ret
;
}
if
(
type
==
MSVCRT__DISABLE_PER_THREAD_LOCALE
)
{
if
(
data
->
locale
)
{
_free_locale
(
data
->
locale
);
data
->
locale
=
NULL
;
}
return
ret
;
}
if
(
!
type
)
return
ret
;
return
-
1
;
}
/*********************************************************************
/*********************************************************************
* setlocale (MSVCRT.@)
* setlocale (MSVCRT.@)
*/
*/
...
...
dlls/msvcrt/msvcrt.h
View file @
20b77f44
...
@@ -791,6 +791,9 @@ typedef struct MSVCRT_localeinfo_struct
...
@@ -791,6 +791,9 @@ typedef struct MSVCRT_localeinfo_struct
MSVCRT_pthreadmbcinfo
mbcinfo
;
MSVCRT_pthreadmbcinfo
mbcinfo
;
}
MSVCRT__locale_tstruct
,
*
MSVCRT__locale_t
;
}
MSVCRT__locale_tstruct
,
*
MSVCRT__locale_t
;
#define MSVCRT__ENABLE_PER_THREAD_LOCALE 1
#define MSVCRT__DISABLE_PER_THREAD_LOCALE 2
extern
MSVCRT__locale_t
MSVCRT_locale
;
extern
MSVCRT__locale_t
MSVCRT_locale
;
MSVCRT__locale_t
get_locale
(
void
);
MSVCRT__locale_t
get_locale
(
void
);
void
__cdecl
_free_locale
(
MSVCRT__locale_t
);
void
__cdecl
_free_locale
(
MSVCRT__locale_t
);
...
...
dlls/msvcrt/msvcrt.spec
View file @
20b77f44
...
@@ -1417,3 +1417,4 @@
...
@@ -1417,3 +1417,4 @@
@ cdecl _set_invalid_parameter_handler(ptr)
@ cdecl _set_invalid_parameter_handler(ptr)
@ cdecl _create_locale(long str)
@ cdecl _create_locale(long str)
@ cdecl _free_locale(ptr)
@ cdecl _free_locale(ptr)
@ cdecl _configthreadlocale(long)
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