Commit graph

24 commits

Author SHA1 Message Date
Aleksey Bragin
226c5fb558 - Add Dmitry Gorbachev's hack for bug 3626 problem (cmd shell initially comes up in permanent loop printing squares). Until a better solution is implemented...
See issue #3626 for more details.

svn path=/trunk/; revision=38509
2009-01-02 17:38:01 +00:00
Dmitry Gorbachev
d3c81b34be Fix UTF-8 -> Wide Char conversion bug #3990.
svn path=/trunk/; revision=38459
2008-12-29 20:16:22 +00:00
Dmitry Gorbachev
030afbd185 - Remove DBCSCodePage field from NLS_FILE_HEADER structure.
- Make RtlInitCodePageTable function slightly clearer.
- Fix IntIsLeadByte function (thanks to Gregor Schneider, bug #3944).

svn path=/trunk/; revision=38042
2008-12-13 15:42:56 +00:00
Dmitry Gorbachev
69096be449 Fix IntIsValidSBCSMapping(). Bug #3903.
svn path=/trunk/; revision=37970
2008-12-09 16:13:51 +00:00
Dmitry Gorbachev
a8089cfb97 Fix Unicode -> Multibyte conversion (bug #3903).
svn path=/trunk/; revision=37836
2008-12-03 17:40:49 +00:00
Stefan Ginsberg
32545494d9 - Go away STDCALL, time has come for WINAPI and NTAPI
svn path=/trunk/; revision=37763
2008-11-30 11:42:05 +00:00
Dmitry Chapyshev
d801a49d71 - Fix formatting. No code change
svn path=/trunk/; revision=37583
2008-11-23 11:15:52 +00:00
Dmitry Chapyshev
4edc51bc5a - Implement GetCPInfoExA/W (not fully)
- Move CODEPAGE_ENTRY struct to header file
- Small fix HeapWalk

svn path=/trunk/; revision=37164
2008-11-03 11:27:17 +00:00
Colin Finck
248d39652c - Remove 2 wrong versions of wctomb and 2 wrong versions of wcstombs
- Implement new versions of wctomb and wcstombs, which consider the language set by setlocale() and work according to all behaviours I could find when testing under WinXP SP2.
  This was tested with an own test suite (which I can commit as well if anyone is interested)
- Do a real conversion to MultiByte characters using wctomb in fputwc and vfwprintf. (verified under WinXP SP2)
- Set 'MSVCRT___lc_codepage' and 'MSVCRT___lc_collate_cp' to 1252 by default ("C" locale) and not the current active codepage (which might not work with i.e. Eastern codepages)
- Add a new check for 'MultiByteCount < 0' to WideCharToMultiByte (also verified under WinXP SP2)
- Change MB_LEN_MAX back to 2, the value 5 only applies to newer CRT's (msvcrt only handles single-byte and double-byte characters)
- Don't compile the Wine-imported 'wcscpy_s', it isn't available in msvcrt

svn path=/trunk/; revision=34557
2008-07-16 21:40:09 +00:00
Colin Finck
f25ac715b0 - Port Wine's WideCharToMultiByte implementation for conversion to a codepage to ReactOS. (with comments :-))
It adds support for DefaultChar, UsedDefaultChar and the flag WC_NO_BEST_FIT_CHARS.
  WC_COMPOSITECHECK is also supported by the Wine implementation, but I don't have an idea how to port it to ReactOS, as we don't seem to have composition tables. I left FIXME's for this flag in the appropriate blocks, this is why some of the code might look badly structured/unoptimized at the moment.
  As we completely rely on the NLS tables for the conversion now, this commit might trigger some bugs there. I already found out that the CP950 table doesn't map Unicode 0 back to MultiByte 0 (but 254), using Windows' c_950.nls it works correctly. Other tables could be buggy as well, c_1252.nls worked flawlessy for me though.
- Added comments to the CPTABLEINFO structure based on documentation from http://www.ping.uio.no/~ovehk/nls/

svn path=/trunk/; revision=34426
2008-07-11 19:11:06 +00:00
Aleksey Bragin
febcfe8913 - Revert 34010 completely, too much breakages. "Don't fix what's not broken".
svn path=/trunk/; revision=34023
2008-06-19 08:41:31 +00:00
Dmitry Chapyshev
4cf0f9906b - Implement ReplaceFileA/W (not fully)
- Implement DnsHostnameToComputerNameA/W (not fully)
- Implement FoldStringA/W
- Implement SetCPGlobal (not tested)
- Implement TzSpecificLocalTimeToSystemTime
- Implement ReadFileScatter
- Implement WriteFileGather
- Other small changes
All based on Wine 1.0 implementation

svn path=/trunk/; revision=34010
2008-06-18 15:37:44 +00:00
Christoph von Wittich
ef9000bca7 support CP_SYMBOL in MultiByteToWideChar and WideCharToMultiByte ported from Wine. patch by Daniel Zimmermann <netzimme at aim dot com>
See issue #2870 for more details.

svn path=/trunk/; revision=31322
2007-12-19 10:56:29 +00:00
Daniel Reimer
ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Johannes Anderwald
1c3f08d9ab - fix bug in GetCPFileNameFromRegistry spotted by Daniel Zimmermann ;)
svn path=/trunk/; revision=28908
2007-09-06 20:18:15 +00:00
Johannes Anderwald
2af89e434c - fix memory leak in GetCPFileNameFromRegistry
- bug report + patch by Daniel Zimmermann / netzimme@aol.com
See issue #2637 for more details.

svn path=/trunk/; revision=28906
2007-09-06 19:57:19 +00:00
Hervé Poussineau
6982b02da4 Remove local header debug.h, and use the global one
svn path=/trunk/; revision=28784
2007-09-02 19:42:22 +00:00
Dmitry Gorbachev
667c44e8f0 - Handle DBCS codepages.
- Add Armenian locale definitions from Wine.

svn path=/trunk/; revision=26836
2007-05-19 10:11:48 +00:00
Alex Ionescu
35c5b063fd - Fix definition of RTL_CRITICAL_SECTION_DEBUG.
- Fix all MSVC warnings in kernel32.
- Re-enable PCH.
- Disable Rtl*CondVar calls, since we can't target Vista *AND* 2003 due to linker problems. We'll need a way to create multiple DLL versions if we're going to attempt this.
- Make ASSERTs always valid in kernel32 as long as DBG is set.
- Fix Windows-loading hack, it seems there's only two levels of SEH. Eitherways, I think I've found a cleaner way to make it load nicely, so this hack will go away soon.

svn path=/trunk/; revision=25633
2007-01-26 07:22:19 +00:00
Magnus Olsen
c32cdd8bfb revers 24232 for cause some other unknown regress.
I need found a better way to solv the null termeting strings

svn path=/trunk/; revision=24244
2006-09-24 07:30:43 +00:00
Magnus Olsen
cc70b77eca add NULL termate on ansi string when WideCharToMultiByteCP doing wchar to ansi converting.
svn path=/trunk/; revision=24232
2006-09-23 07:28:44 +00:00
Aleksey Bragin
b0f84fadf3 [AUDIT]
kernel32.dll
- Remove locks from Wine code, and from simple stub or forward type of functions
- Add file headers to all files (except shared completely with Wine)
- Mark a pair of functions as shared with Wine (to be changed later when adding correct function headers)

svn path=/trunk/; revision=22043
2006-05-25 19:50:19 +00:00
Aleksey Bragin
9c87128331 [AUDIT]
kernel32.dll

- Unlock files shared with Wine
- Unlock really obvious implementations
- Unlock files which are mostly stubs
- Fix programmer's name in one file

svn path=/trunk/; revision=21951
2006-05-20 17:21:53 +00:00
Ged Murphy
b9620a1018 reshuffling of dlls
svn path=/trunk/; revision=21035
2006-02-17 00:52:06 +00:00
Renamed from reactos/lib/kernel32/misc/nls.c (Browse further)