Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-11-02 Thread José Mejuto via fpc-pascal
El 01/11/2020 a las 20:36, AlexeyT via fpc-pascal escribió: @/José Mejuto, can you pls simplify this place, ie remove "if /IBYTE = 10" + then/else. Hello, I don't have write access, so no, I can not. -- ___ fpc-pascal maillist - fpc-pascal@list

[fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-11-01 Thread AlexeyT via fpc-pascal
>Though one could probably exclude the check at line 1981 of rtl/inc/ustrings.inc as well as the two existing branches will result in the same Yes, it was my point B. @/José Mejuto, can you pls simplify this place, ie remove "if /IBYTE = 10" + then/else. -- Regards, Alexey

Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-29 Thread Sven Barth via fpc-pascal
Michael Van Canneyt via fpc-pascal schrieb am Do., 29. Okt. 2020, 09:36: > > > On Thu, 29 Oct 2020, AlexeyT via fpc-pascal wrote: > > > So can you COMMENT that dead part with "and FALSE" and dead part II > > with "if ... =#10"? It will make things faster for people! > > It will make things faste

Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-29 Thread Michael Van Canneyt via fpc-pascal
On Thu, 29 Oct 2020, AlexeyT via fpc-pascal wrote:  So can you COMMENT that dead part with "and FALSE" and dead part II with "if ... =#10"? It will make things faster for people! It will make things faster for people as well if you point at the right unit or mail on the right mailing list.

Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-29 Thread AlexeyT via fpc-pascal
 So can you COMMENT that dead part with "and FALSE" and dead part II with "if ... =#10"? It will make things faster for people! Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fp

Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-28 Thread José Mejuto via fpc-pascal
El 27/10/2020 a las 21:25, AlexeyT via fpc-pascal escribió: rtl/inc/ustrings.inc function UTF8ToUnicode(Dest: PUnicodeChar; MaxDestChars: SizeUInt; Source: PChar; SourceBytes: SizeUInt): SizeUInt; a) it has "If (PreChar<>13) and FALSE then" and later some big block. with a comment which tel

[fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-27 Thread AlexeyT via fpc-pascal
rtl/inc/ustrings.inc function UTF8ToUnicode(Dest: PUnicodeChar; MaxDestChars: SizeUInt; Source: PChar; SourceBytes: SizeUInt): SizeUInt; a) it has "If (PreChar<>13) and FALSE then" and later some big block. with a comment which tells that "and FALSE" is on purpose and block is ignored.