modified dll/win32/kernel32/misc/lang.c

modified   dll/win32/kernel32/kernel32.def
   Stubbed out GetLocaleInfoEx

modified   include/psdk/winnls.h
   Added some Vista and later NLS defines to the SDK

modified   dll/nls/idndl/idndl.rbuild
   Correctly set a NULL entry point for idndl.dll

modified   dll/nls/idndl_redist/idndl_redist.rbuild
modified   dll/nls/normaliz_redist/normaliz_redist.rbuild
   Give unique names to the redistributable versions of idndl.dll and normaliz.dll

Everything else
   Scattered NLS modules in the appropriate locations, as per standard source tree layout

svn path=/trunk/; revision=34463
This commit is contained in:
KJK::Hyperion 2008-07-13 17:54:53 +00:00
parent 9f0f4702a5
commit 70a54a9995
2961 changed files with 83 additions and 22368 deletions

View file

@ -58,9 +58,6 @@
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<!--<directory name="nls">
<xi:include href="nls/nls.rbuild" />
</directory>-->
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
<!-- <xi:include href="ntoskrnl/ntkrnlmp.rbuild" /> -->

View file

@ -13,6 +13,9 @@
<directory name="keyboard">
<xi:include href="keyboard/keyboard.rbuild" />
</directory>
<directory name="nls">
<xi:include href="nls/nls.rbuild" />
</directory>
<directory name="ntdll">
<xi:include href="ntdll/ntdll.rbuild" />
</directory>

View file

@ -4,7 +4,7 @@
<library>kernel32</library>
<compilerflag>-fno-exceptions</compilerflag>
<compilerflag>-fno-rtti</compilerflag>
<linkerflag>-Wl,--entry,0</linkerflag>
<entrypoint>0</entrypoint>
<file>idndl.cpp</file>
<importlibrary definition="idndl.def" />
</module>

View file

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="idndl_redist" type="win32dll" installname="idndl.dll">
<module name="idndl_redist" type="win32dll" installname="idndl_redist.dll">
<library>kernel32</library>
<library>scripts</library>
<library>libcntpr</library>

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!DOCTYPE group SYSTEM "../../tools/rbuild/project.dtd">
<group xmlns:xi="http://www.w3.org/2001/XInclude">
<directory name="idndl">
<xi:include href="idndl/idndl.rbuild" />
</directory>
<directory name="idndl_redist">
<xi:include href="idndl_redist/idndl_redist.rbuild" />
</directory>
<directory name="normaliz">
<xi:include href="normaliz/normaliz.rbuild" />
</directory>
<directory name="normaliz_redist">
<xi:include href="normaliz_redist/normaliz_redist.rbuild" />
</directory>
</group>

View file

@ -4,7 +4,7 @@
<include base="icu4ros">icu/source/common</include>
<directory name="data"><file>icudt38.c</file></directory>
</module>
<module name="normaliz_redist" type="win32dll" installname="normaliz.dll">
<module name="normaliz_redist" type="win32dll" installname="normaliz_redist.dll">
<library>normalize</library>
<library>idna</library>
<library>icu4ros</library>

View file

@ -1,4 +1,4 @@
;
;
; kernel32.def
;
; Exports for KERNEL32 DLL
@ -7,14 +7,14 @@
;
; Author: Scott Christley <scottc@net-community.com>
; Date: 1996
;
;
; This file is part of the Windows32 API Library.
;
; This library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Library General Public
; License as published by the Free Software Foundation; either
; version 2 of the License, or (at your option) any later version.
;
;
; This library is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@ -22,10 +22,10 @@
;
; If you are interested in a warranty or support for this source code,
; contact Scott Christley <scottc@net-community.com> for more information.
;
;
; You should have received a copy of the GNU Library General Public
; License along with this library; see the file COPYING.LIB.
; If not, write to the Free Software Foundation,
; If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
;
LIBRARY KERNEL32.DLL
@ -419,6 +419,7 @@ GetLastError@0
GetLocalTime@4
GetLocaleInfoA@16
GetLocaleInfoW@16
GetLocaleInfoEx@16
GetLogicalDriveStringsA@8
GetLogicalDriveStringsW@8
GetLogicalDrives@0

View file

@ -1590,6 +1590,18 @@ INT RosGetRegistryLocaleInfo( LPCWSTR lpValue, LPWSTR lpBuffer, INT nLen )
return nRet;
}
int
WINAPI
GetLocaleInfoEx (
LPCWSTR lpLocaleName,
LCTYPE LCType,
LPWSTR lpLCData,
int cchData
)
{
return -1;
}
/*
* @implemented
*/
@ -1773,8 +1785,8 @@ CompareStringA (
}
static int compare_unicode_string(
PUNICODE_STRING String1,
static int compare_unicode_string(
PUNICODE_STRING String1,
PUNICODE_STRING String2,
DWORD Flags
)
@ -1782,7 +1794,7 @@ static int compare_unicode_string(
ULONG len1, len2;
PWCHAR s1, s2;
WCHAR c1, c2;
if (String1 && String2)
{
len1 = String1->Length / sizeof(WCHAR);
@ -1901,8 +1913,8 @@ CompareStringW (
else
Result = RtlCompareUnicodeString(
&String1, &String2, (BOOLEAN)(dwCmpFlags & NORM_IGNORECASE));
if (Result) /* need to translate result */
return (Result < 0) ? CSTR_LESS_THAN : CSTR_GREATER_THAN;
@ -2177,9 +2189,9 @@ IsValidLanguageGroup(
DWORD dwFlags)
{
static const WCHAR szFormat[] = { '%','x','\0' };
UNICODE_STRING szNlsKeyName =
UNICODE_STRING szNlsKeyName =
RTL_CONSTANT_STRING(L"\\REGISTRY\\Machine\\System\\CurrentControlSet\\Control\\Nls");
UNICODE_STRING szLangGroupsKeyName =
UNICODE_STRING szLangGroupsKeyName =
RTL_CONSTANT_STRING(L"Language Groups");
const int MAX_VALUE_NAME = 16;
const int MAX_VALUE_SYMB = 128;

View file

@ -123,6 +123,9 @@ extern "C" {
#define LOCALE_SISO3166CTRYNAME 90
#define LOCALE_SNAME 92
#endif
#if (WINVER >= 0x0600)
#define LOCALE_SSCRIPTS 108
#endif
#define LOCALE_SYSTEM_DEFAULT 0x800
#define LOCALE_USER_DEFAULT 0x400
@ -430,6 +433,12 @@ extern "C" {
#define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
#define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
#endif /* (WINVER >= 0x0500) */
#if WINVER >= 0x0600
#define IDN_ALLOW_UNASSIGNED 0x1
#define IDN_USE_STD3_ASCII_RULES 0x2
#define VS_ALLOW_LATIN 0x1
#define GSS_ALLOW_INHERITED_COMMON 0x1
#endif
#ifndef _BASETSD_H
typedef long LONG_PTR;
#endif
@ -638,8 +647,15 @@ LANGID WINAPI GetUserDefaultUILanguage(void);
BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
#endif /* (WINVER >= 0x0500) */
#if (WINVER >= 0x0600)
int WINAPI NormalizeString(NORM_FORM,LPCWSTR,int,LPWSTR,int);
WINBASEAPI
int WINAPI GetLocaleInfoEx(LPCWSTR,LCTYPE,LPWSTR,int);
int WINAPI IdnToAscii(DWORD,LPCWSTR,int,LPWSTR,int);
int WINAPI IdnToNameprepUnicode(DWORD,LPCWSTR,int,LPWSTR,int);
int WINAPI IdnToUnicode(DWORD,LPCWSTR,int,LPWSTR,int);
BOOL WINAPI IsNormalizedString(NORM_FORM,LPCWSTR,int);
int WINAPI NormalizeString(NORM_FORM,LPCWSTR,int,LPWSTR,int);
int WINAPI GetStringScripts(DWORD,LPCWSTR,int,LPWSTR,int);
BOOL WINAPI VerifyScripts(DWORD,LPCWSTR,int,LPCWSTR,int);
#endif /* (WINVER >= 0x0600) */
#ifdef UNICODE

View file

@ -10,6 +10,9 @@
<directory name="expat">
<xi:include href="expat/expat.rbuild" />
</directory>
<directory name="icu4ros">
<xi:include href="icu4ros/icu4ros.rbuild" />
</directory>
<directory name="libwine">
<xi:include href="libwine/libwine.rbuild" />
</directory>

Some files were not shown because too many files have changed in this diff Show more