michael
64ab9c06d3
* Added GetLocalTimeOffset function
...
git-svn-id: trunk@21865 -
2012-07-11 09:56:34 +00:00
pierre
573102fa70
* Explicitly disable checkpointer for functions using GetEnvironmentStrings
...
git-svn-id: trunk@20179 -
2012-01-26 13:50:36 +00:00
sergei
abdbe49861
+ SysUtils part of SEH (enabled only for win64)
...
* EExternal.ExceptionRecord changed from field to property and made available on all Windows, not just win32.
* CatchUnhandledException: removed AnsiString variable, ideally there should be no memory allocations in this code path.
git-svn-id: trunk@19849 -
2011-12-14 10:47:26 +00:00
paul
9e0ad7baae
merge r17318 from cpstrnew branch by florian:
...
* compilation fix by Inoussa OUEDRAOGO, resolves #19160
git-svn-id: trunk@19104 -
2011-09-17 13:01:20 +00:00
marco
d6962106b9
* typecast that fixes range error, part of mantis #16172
...
git-svn-id: trunk@19040 -
2011-09-09 20:03:08 +00:00
marco
bb2e98c4f1
* load listseparator from locale. Patch by Bart B. Mantis 19976
...
git-svn-id: trunk@18188 -
2011-08-13 09:16:46 +00:00
michael
9d580533d9
* Fixed compile error in FileCreate
...
git-svn-id: trunk@17549 -
2011-05-24 07:10:33 +00:00
michael
a201f07420
* Added share mode argument to FileCreate call
...
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
florian
6b4f13c1d7
* workaround for bug in GetThreadLocale on some W7, resolves #18574
...
git-svn-id: trunk@17331 -
2011-04-16 20:38:04 +00:00
joost
2937190516
* Moved and renamed GetSpecialDir from sysutils to new windirs unit, so it can be used in the compiler
...
git-svn-id: trunk@17134 -
2011-03-14 20:43:03 +00:00
sergei
15e1abddf7
* Windows RTL: Simplify SysUtils.GetLocalTime(). TSystemTime type for these targets matches one defined in Windows unit, so WinAPI function result can be used directly. Resolves #18346 .
...
git-svn-id: trunk@16665 -
2010-12-30 20:40:47 +00:00
sergei
13bea29253
* win/sysutils.pp, FileOpen and FileCreate, removed manual zero-termination of strings. This unit compiles in {$h+} state, and AnsiString zero-termination is handled automatically these days.
...
git-svn-id: trunk@16558 -
2010-12-12 15:07:38 +00:00
sergei
179229007e
* win/sysutils.pp: fix/clean up loading dll for SHGetFolderPath.
...
* Don't attempt to load shell32.dll, since every system with shell32.dll that exports SHGetFolderPath also has shfolder.dll present.
* Load shfolder.dll using a full path in order to prevent loading of malicious code by placing a same-named dll into program directory (Mantis #18185 ).
git-svn-id: trunk@16549 -
2010-12-11 10:05:10 +00:00
sergei
c5162a7816
* win/sysutils.pp: Use GetModuleHandle for dynamic loading of kernel32.dll instead of LoadLibrary, this is possible because kernel32 is statically linked by RTL and is therefore always loaded with application. Also makes FreeLibrary at finalization unnecessary.
...
- Removed checks for Windows version, they are redundant. GetProcAddress simply returns nil if the function is not present.
git-svn-id: trunk@16540 -
2010-12-11 04:47:33 +00:00
Jonas Maebe
f4c31ecf3c
+ widestringmanager.codepointlengthproc added, which can be used to
...
determine the length of a multi-byte character. The return values
are defined to be the same as those of POSIX' mblen: -1 =
invalid/incomplete sequence, 0 = #0 , > 0 = length of sequence in
bytes.
+ default implementation for widestringmanager.codepointlengthproc
(assumes all code points have length 1) and Unix implementation
(based on mb(r)len); Windows implementation is still required
* replaced default implementation of
widestringmanager.CharLengthPCharProc with strlen() of the input
instead of an error (correct if all code points have length 1,
still needs Windows implementation)
+ implemented fpc_text_read_{wide,unicode}str() and
fpc_text_read_widechar() (mantis #18163 ); fpc_text_read_widechar()
uses the new widestringmanager.codepointlengthproc()
+ unicodestring support for readstr/writestr
* fixed declaration of fpc_Write_Text_UnicodeStr (unicodestring
instead of widestring parameter)
* extended test/twide*.pp tests to test the new/fixed functionality
git-svn-id: trunk@16533 -
2010-12-10 14:10:01 +00:00
sergei
80d69c8a22
* win/sysutils.pp, implement CompareUnicodeString and CompareTextUnicodeString, resolves #17591 .
...
git-svn-id: trunk@16293 -
2010-11-02 07:34:23 +00:00
sergei
a4dd7701d9
* win/sysutils.pp: removed private WinAPI function declarations. Since this unit uses Windows unit, there's no point in re-declaring stuff.
...
git-svn-id: trunk@16292 -
2010-11-02 07:11:17 +00:00
sergei
0933bdc045
* win/sysutils.pp, removed an unused variable (forgotten part of r13838)
...
git-svn-id: trunk@16282 -
2010-11-01 00:38:51 +00:00
mazen
b127fc154a
* Fixed spell error revealed by lintian.
...
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
marco
8caa62618f
* support for east asia locale in formatdatetime. Patch from Taka_JP, mantis 14955 modified for recent sysutils rework, and to init eastasia support only once.
...
git-svn-id: trunk@15776 -
2010-08-11 09:03:13 +00:00
marco
2d8ac256cf
* First era patch of Taka_JP.
...
git-svn-id: trunk@15775 -
2010-08-11 08:29:47 +00:00
marco
1181115baa
* getlocalformatsettings, Mantis 10389
...
git-svn-id: trunk@15691 -
2010-08-02 20:32:50 +00:00
marco
deb78080ed
* fix for Mantis 16564. Raise buffersize of getlocalechar to MSDN limit 4,
...
so that locales with long dateseparators (time,thousand,decimal) now
succeed, even if limited only to first char. (Delphi limit)
git-svn-id: trunk@15328 -
2010-05-26 20:14:08 +00:00
marco
be98b13554
* fix for 11263, changed fileread and fd_zero to out using $modeswitch.
...
git-svn-id: trunk@14965 -
2010-03-01 22:35:14 +00:00
marco
8e9a7e14ad
* Revised yesterday solution to a more general one. Executeprocess gets
...
another parameter, a set type with flags, default = []
git-svn-id: trunk@14572 -
2010-01-07 20:49:28 +00:00
florian
3f17af3437
* patch by taka_jp to set SysLocale.PriLangID on windows properly, resolves #14872
...
git-svn-id: trunk@14570 -
2010-01-07 20:06:24 +00:00
marco
0b4b9b5220
* Windows specific overloads for ExecuteProcess that implements a hack for redir that exists for dos.exec too.
...
.. but then not using a global variable
git-svn-id: trunk@14556 -
2010-01-06 19:50:09 +00:00
michael
01ed4a6745
* Implemented OnBeep to install custom beep handler
...
git-svn-id: trunk@14254 -
2009-11-22 17:33:56 +00:00
florian
cba72c423d
* patch by Sergei Gorelkin to use always SetFilePointer, also for files with >2GB, this saves some lines of code, resolves #14630
...
git-svn-id: trunk@13838 -
2009-10-10 18:52:50 +00:00
florian
a2862ce347
* cleaned up mess of r13516
...
git-svn-id: trunk@13524 -
2009-08-12 19:34:46 +00:00
florian
d34061d7e4
* introduced fmShareDenyNoneFlags on windows because the meaning of fmShareDenyNone is unclear, see also #8898
...
git-svn-id: trunk@13514 -
2009-08-10 20:33:20 +00:00
florian
b47650960e
* patch by Sergei Gorelkin: makes WideCompareText and WideCompareStr work in Windows 9x , resolves #13955
...
git-svn-id: trunk@13265 -
2009-06-12 18:21:06 +00:00
marco
97093e4f2b
* fixed 64-bit size of findmatch. (mantis 13504) Tested with $12000001 bytes large file, matched to the byte.
...
git-svn-id: trunk@13014 -
2009-04-16 05:38:00 +00:00
Almindor
4a54f15b47
* fix GetAppConfigDir and GetTmpDir for Windows(R)(c)(TM) and WinCE, unify with unix and provide pathdelim at end
...
git-svn-id: trunk@11529 -
2008-08-07 10:22:30 +00:00
michael
26575472b6
* Added GetUSerDir function (ID 11338)
...
git-svn-id: trunk@11074 -
2008-05-24 11:50:26 +00:00
peter
69363bad5e
* quote parameters with spaces
...
git-svn-id: trunk@10111 -
2008-01-30 00:15:22 +00:00
peter
95d0ce1270
* VendorName function added to allow an extra subdirectory
...
to group multiple products
* OnGetVendorName hook, like OnGetApplicationName
* use COMMON_APPPATH for global config files under windows
git-svn-id: trunk@10072 -
2008-01-27 21:40:55 +00:00
peter
50a9dcd5f9
* global appconfig dir needs to be common_appdata directory
...
git-svn-id: trunk@10068 -
2008-01-27 19:55:05 +00:00
yury
d7d6b37158
* Fixed warnings.
...
git-svn-id: trunk@9513 -
2007-12-22 12:12:25 +00:00
florian
86e3e79e67
+ WC_NO_BEST_FIT_CHARS
...
* use WC_NO_BEST_FIT_CHARS when calling WideCharToMultiByte
* made tiwde6 more verbose
git-svn-id: trunk@9481 -
2007-12-16 13:45:09 +00:00
yury
220a37b443
* Do not fill generic upcase and lowcase conversion tables for windows targets, because generic ANSI routines are not used here.
...
git-svn-id: trunk@9049 -
2007-11-01 16:15:29 +00:00
florian
728055586a
+ delphi compatibility stuff
...
git-svn-id: trunk@7800 -
2007-06-24 20:29:05 +00:00
Tomas Hajny
5e1a7997ee
+ FileTruncate allows 64-bit parameter
...
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
florian
35fdb22b91
* FileSetDate now working on Win, see #7837
...
* FileSetDate more Delphi compatible
git-svn-id: trunk@5824 -
2007-01-06 10:48:10 +00:00
micha
ce9e589e15
* fix FileSeek implementation to match declaration
...
git-svn-id: trunk@5159 -
2006-11-01 17:47:47 +00:00
florian
b6309075a4
+ GetFileVersion (win only)
...
git-svn-id: trunk@4924 -
2006-10-15 14:36:05 +00:00
micha
d704af7216
fix compilation for {$T+} linux/win
...
git-svn-id: trunk@4794 -
2006-10-04 20:43:55 +00:00
daniel
41185d2f1e
* Add stdcall procdir to imported sysgettempfilename
...
git-svn-id: trunk@4527 -
2006-09-01 15:35:22 +00:00
yury
5a49addb35
* fixed more warnings and notes while compiling RTL.
...
git-svn-id: trunk@4259 -
2006-07-19 19:10:02 +00:00
oro06
42bd89095f
*fix fileopen (please OS2,EMX maintainers have a look)
...
git-svn-id: trunk@3858 -
2006-06-13 08:15:35 +00:00