U rtl/objpas/classes/streams.inc
--- Recording mergeinfo for merge of r49478 into '.':
U .
# revisions: 49478
r49478 | marco | 2021-06-05 17:42:34 +0200 (Sat, 05 Jun 2021) | 2 lines
Changed paths:
M /trunk/rtl/objpas/classes/streams.inc
* fix from Sebastian Hellwig for writeunicodestring bytes number, mantis 0038963
git-svn-id: branches/fixes_3_2@49610 -
------------------------------------------------------------------------
r47061 | michael | 2020-10-07 12:15:13 +0200 (Wed, 07 Oct 2020) | 1 line
* Fix bug where position is not advanced when calling ReadAnsiString/ReadString
------------------------------------------------------------------------
git-svn-id: branches/fixes_3_2@47062 -
(TStrings&TEncoding encoding fixes)
r43838
classes: fix TMBCSEncoding.IsSingleByte. Issue #36504
---------------------
r43839
classes: fix TStrings.SaveToStream overloads (Delphi-compatibility + introduce IgnoreEncoding-overload for legacy FPC code like for LoadFromStream)
---------------------
r43840
sysutils: fix TMBCSEncoding.GetPreamble
---------------------
r43841
classes: add TStrings.Options (Delphi-compatibility)
---------------------
r43842
sysutils: change TEncoding.Default from ANSI to SystemEncoding. (It is Delphi-compatible indeed because default SystemEncoding is ANSI.)
---------------------
r43844
fpmkunit: fix compilation after r43841
---------------------
r43845
classes: introduce TRawByteStringStream
---------------------
r43846
sysutils: TEncoding.IsStandardEncoding: FSystemEncodings are standard encodings (they must not be destroyed in user code)
---------------------
r43848
classes: add TStringsOption.soPreserveBOM
---------------------
r43942
TStrings: old SaveToFile(string) and SaveToStream(TStream) should ignore Encoding and stay backwards compatible within FPC. Use the other overloads for Encoding-aware SaveTo* methods
---------------------
r43945
TStrings: add missing SaveToFile overload with IgnoreEncoding parameter
---------------------
r43946
Revert r43942: TStrings: old SaveToFile(string) and SaveToStream(TStream) should ignore Encoding and stay backwards compatible within FPC. Use the other overloads for Encoding-aware SaveTo* methods
---------------------
r43947
TStrings: default options: * remove soWriteBOM for FPC backwards compatibility * add soPreserveBOM so that a loaded file is correctly resaved
---------------------
r43948
TStrings.SaveToStream(TStream): use FEncoding as the default for IgnoreEncoding=False so that loaded files are correctly resaved
---------------------
git-svn-id: branches/fixes_3_2@44067 -
------------------------------------------------------------------------
r43357 | michael | 2019-11-02 12:51:28 +0100 (Sat, 02 Nov 2019) | 1 line
* Fix bug ID #36234: unicodedatastering must be of type unicodestring
------------------------------------------------------------------------
git-svn-id: branches/fixes_3_2@43735 -
------------------------------------------------------------------------
r42048 | michael | 2019-05-12 17:33:26 +0200 (Sun, 12 May 2019) | 1 line
* FIx compilation for platforms that do not have extended
------------------------------------------------------------------------
r42049 | michael | 2019-05-12 17:36:04 +0200 (Sun, 12 May 2019) | 1 line
* FIx compilation with 3.0.4
------------------------------------------------------------------------
r42056 | michael | 2019-05-13 13:47:46 +0200 (Mon, 13 May 2019) | 1 line
* Make explicit that Integer is 32-bit
------------------------------------------------------------------------
r42057 | michael | 2019-05-13 22:15:00 +0200 (Mon, 13 May 2019) | 1 line
* Fix bug ID #35576
------------------------------------------------------------------------
git-svn-id: branches/fixes_3_2@42425 -
------------------------------------------------------------------------
r42021 | michael | 2019-05-07 17:40:00 +0200 (Tue, 07 May 2019) | 1 line
* GetPrimaryIndexFields is now a public class method, needed in designer
------------------------------------------------------------------------
r42040 | michael | 2019-05-12 09:51:38 +0200 (Sun, 12 May 2019) | 1 line
* Patch from Ondrej Pokorny to fix bug ID #35544 (accept short timezones)
------------------------------------------------------------------------
r42041 | michael | 2019-05-12 09:54:02 +0200 (Sun, 12 May 2019) | 1 line
* Add largeint (int64) parameter supportby Silvio Clecio (bug ID 35554)
------------------------------------------------------------------------
r42042 | michael | 2019-05-12 12:09:16 +0200 (Sun, 12 May 2019) | 1 line
* Add Read/Write(Buffer) TBytes, ReadData/WriteData, ReadBufferData/WriteBufferData to be Delphi compatible
------------------------------------------------------------------------
git-svn-id: branches/fixes_3_2@42424 -
Also adjusted all Windows (Win32/64/CE) units to define a "UNICODE" if "FPC_OS_UNICODE" is defined (except the Jedi units).
Also the common RTL units that checked for UNICODE now check for FPC_OS_UNICODE.
git-svn-id: trunk@24420 -
if an address is passed the compiler cannot know a good
value for the frame so it passed nil and no stack trace is printed, resolves#12528
git-svn-id: trunk@22932 -
* Override GetSize/Position for memory/stringstream for efficiency
* Added InvalidSeek exception throwing. Should be overridden to throw custom exceptions.
git-svn-id: trunk@18190 -
a) Use significantly larger buffer (128k instead of 1k)
b) When Count=0, do not try to determine the source size. Just copy until the source can be read. This should improve performance with limited seek capability sources (e.g. a decompression stream will be decompressed once rather than twice).
c) Use ReadBuffer/WriteBuffer, so an exception is raised when something goes wrong. This conforms to Delphi behavior.
git-svn-id: trunk@16992 -
- return STG_E_INVALIDPOINTER instead of E_INVLIDARG for Read,Write as msdn requires
- return STG_E_INVALIDFUNCTION instead of E_INVLIDARG for Seek as msdn requires
git-svn-id: trunk@15127 -