Commit Graph

21 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
6cc315d4da * Fix compilation with unicodertl 2023-07-24 15:38:09 +02:00
Michael VAN CANNEYT
706e090457 * Char -> AnsiChar 2023-07-14 17:26:10 +02:00
Tomas Hajny
1e6ee7f3c7 * fix remaining search handle leaks in Dos.FSearch - fix for bug
git-svn-id: trunk@34910 -
2016-11-17 22:05:17 +00:00
Tomas Hajny
b7de70422f * fix for bug (extended version of patch by Bart Broersma)
git-svn-id: trunk@34849 -
2016-11-08 22:16:49 +00:00
pierre
7efce7f121 Rewrite CommandLine creation in Dos.Exec function to avoid problems when ComLine is 255 characters long
git-svn-id: trunk@34015 -
2016-06-21 10:13:41 +00:00
Jonas Maebe
df6a2dce00 + unicodestring support for assign/erase/rename
+ codepage support for textrec/filerec and the above routines
  * textrec/filerec now store the filename by default using widechar. It is
    possible to switch back to ansichars using the FPC_ANSI_TEXTFILEREC define.
    In that case, from now on the filename will always be stored in
    DefaultFileSystemEncoding
  * fixed potential buffer overflows and non-null-terminated file names in
    textrec/filerec
  + dodirseparators(pwidechar), changed the dodirseparators(pchar/pwidechar)
    parameters into var-parameters and gave those routines an extra parameter
    that indicates whether the p(wide)char can be changed in place if
    necessary or whether a copy must be made first (avoids us having to make
    all strings always unique everywhere, because they might be changed on
    some platforms via a pchar)
  * do_open/do_erase/do_rename got extra boolean parameters indicating whether
    the passed pchars point to data that can be freely changed (to pass on to
    dodirseparators() if applicable)
  * objects.pp: force assign(pchar) to be called, because
    assign(array[0..255]) cannot choose between pchar and rawbytestring
    versions (and removing the pchar version means that assign(pchar) will
    be mapped to assign(shortstring) in {$h-})
  * fixed up some routines in other units that depend on the format of
    the textrec/filerec.name field

git-svn-id: branches/cpstrrtl@25137 -
2013-07-19 16:30:51 +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
2099318c3d * win/dos.pp: cleanup GetDiskFreeSpace related stuff, patch similar to sysutils.pp rev.16540.
git-svn-id: trunk@17726 -
2011-06-12 03:35:45 +00:00
yury
62e616cae0 * Fixed warnings. rtl is warnings and notes free for wince and win32 again.
git-svn-id: trunk@10632 -
2008-04-12 13:34:26 +00:00
peter
f4f3ae84d0 * AllowDirectorySeparators and AllowDriveSeparators typed constants
added to allow customization of path and directory parsing in the rtl
  * Use the new sets instead of the hardcoded / and \

git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
pierre
8132e2c5d0 * correct previous patch, the first letter was missing
git-svn-id: trunk@6066 -
2007-01-19 03:34:57 +00:00
pierre
4bd7803e00 * insure that env variable is only truncated if more than 255 chars after the equal sign
git-svn-id: trunk@6065 -
2007-01-19 03:29:40 +00:00
florian
585db9d3c6 - removed unncessary packed
* adapted structure

git-svn-id: trunk@5075 -
2006-10-29 21:46:15 +00:00
Tomas Hajny
1cc4173738 * GetLongName hasn't been returning real LFN
git-svn-id: trunk@4225 -
2006-07-16 12:46:19 +00:00
Tomas Hajny
37b80b35e7 * fix for (new) bug
git-svn-id: trunk@4039 -
2006-07-01 20:23:23 +00:00
florian
1db5db975e * more 64 bit clean up
git-svn-id: trunk@3224 -
2006-04-16 09:42:12 +00:00
armin
52e85b283c changed types for GetDiskFreeSpace[Ex] from longint to longword
git-svn-id: trunk@3222 -
2006-04-15 20:32:16 +00:00
florian
58c01ffd59 * use always GetDiskFreeSpaceEx on Winx64
git-svn-id: trunk@3214 -
2006-04-15 16:56:15 +00:00
florian
598853240c * keep the stack 16 byte aligned on winx64
* fixed some winx64 issues regarding exec

git-svn-id: trunk@3213 -
2006-04-15 16:49:18 +00:00
florian
89f8474388 * unified and moved some win32/win64 stuff
+ more units on win64 compile

git-svn-id: trunk@3131 -
2006-04-02 20:52:17 +00:00