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
324ea572
Commit
324ea572
authored
Nov 22, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes to get the default language to a sensible value.
Thanks to Pablo.
parent
692389d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
options.h
include/options.h
+1
-1
main.c
misc/main.c
+4
-1
ole2nls.c
ole/ole2nls.c
+13
-14
No files found.
include/options.h
View file @
324ea572
...
...
@@ -15,7 +15,7 @@
* the proper case line
*/
typedef
enum
{
{
LANG_Xx
,
/* Just to ensure value 0 is not used */
LANG_En
,
/* English */
LANG_Es
,
/* Spanish */
LANG_De
,
/* German */
...
...
misc/main.c
View file @
324ea572
...
...
@@ -669,7 +669,7 @@ int MAIN_GetLanguageID(LPCSTR Lang,LPCSTR Country,LPCSTR Charset,LPCSTR Dialect)
LANG_ENTRY_BEGIN
(
"eo"
,
ESPERANTO
)
/* not official */
LANG_ENTRY_END
(
ESPERANTO
)
ret
=
LANG_
NEUTRAL
;
ret
=
LANG_
ENGLISH
;
end_MAIN_GetLanguageID:
if
(
Charset
)
free
(
charset
);
...
...
@@ -737,6 +737,9 @@ static void MAIN_ParseOptions( int *argc, char *argv[] )
Options
.
programName
=
MAIN_GetProgramName
(
*
argc
,
argv
);
Options
.
argv0
=
argv
[
0
];
/* initialise Options.language to 0 to tell "no language choosen yet" */
Options
.
language
=
0
;
/* Get display name from command line */
for
(
i
=
1
;
i
<
*
argc
;
i
++
)
{
...
...
ole/ole2nls.c
View file @
324ea572
...
...
@@ -590,10 +590,11 @@ LANGID WINAPI GetUserDefaultLangID()
if
(
!
buf
)
buf
=
getenv
(
"LANG"
);
if
(
!
buf
)
buf
=
getenv
(
"LC_ALL"
);
if
(
!
buf
)
buf
=
getenv
(
"LC_MESSAGES"
);
if
(
!
buf
)
return
userLCID
=
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
);
if
(
!
buf
)
buf
=
getenv
(
"LC_CTYPE"
);
if
(
!
buf
)
return
userLCID
=
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_DEFAULT
);
if
(
!
strcmp
(
buf
,
"POSIX"
)
||
!
strcmp
(
buf
,
"C"
))
{
return
MAKELANGID
(
LANG_
NEUTRAL
,
SUBLANG_DEFAULT
);
return
MAKELANGID
(
LANG_
ENGLISH
,
SUBLANG_DEFAULT
);
}
lang
=
buf
;
...
...
@@ -635,6 +636,9 @@ INT16 WINAPI GetLocaleInfo16(LCID lcid,LCTYPE LCType,LPSTR buf,INT16 len)
/******************************************************************************
* GetLocaleInfo32A [KERNEL32.342]
*
* NOTES
* LANG_NEUTRAL is equal to LOCALE_SYSTEM_DEFAULT
*/
INT32
WINAPI
GetLocaleInfo32A
(
LCID
lcid
,
LCTYPE
LCType
,
LPSTR
buf
,
INT32
len
)
{
...
...
@@ -649,12 +653,14 @@ INT32 WINAPI GetLocaleInfo32A(LCID lcid,LCTYPE LCType,LPSTR buf,INT32 len)
return
0
;
}
if
(
lcid
==
LOCALE_SYSTEM_DEFAULT
||
(
LCType
&
LOCALE_NOUSEROVERRIDE
)
)
{
lcid
=
GetSystemDefaultLCID
();
}
else
if
(
lcid
==
LOCALE_USER_DEFAULT
)
{
lcid
=
GetUserDefaultLCID
();
if
(
lcid
==
0
||
lcid
==
LANG_SYSTEM_DEFAULT
||
(
LCType
&
LOCALE_NOUSEROVERRIDE
)
)
/* 0x00, 0x400 */
{
lcid
=
GetSystemDefaultLCID
();
}
else
if
(
lcid
==
LANG_USER_DEFAULT
)
/*0x800*/
{
lcid
=
GetUserDefaultLCID
();
}
LCType
&=
~
(
LOCALE_NOUSEROVERRIDE
|
LOCALE_USE_CP_ACP
);
/* As an option, we could obtain the value from win.ini.
...
...
@@ -676,13 +682,6 @@ INT32 WINAPI GetLocaleInfo32A(LCID lcid,LCTYPE LCType,LPSTR buf,INT32 len)
return
0
;
}
if
((
lang
&
0x3ff
)
==
0x000
)
/*LANG_NEUTRAL ==> US English*/
{
lang
=
0x0409
;
WARN
(
ole
,
"no language set, assume LANG_ENGLISH_US
\n
"
);
}
found
=
0
;
lang
=
lcid
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
int
j
;
...
...
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