Hi Luigi,
No. Please think twice before reporting "bugs". And do check if your
assumption is right or wrong. The RTrimEOL() function is supposed to
trim all variants of chr( 13 ) and/or chr( 10 ) line endings -
DOS/Windows, Unix, old MAC - and not just DOS/Windows. See the simple
test below.
Regards,
Klas
//----------------------------
proc main()
? len( RTrimEOL( 'Luigi' + Chr( 13 ) + Chr( 10 ) + Chr( 13 ) +;
Chr( 10 ) + Chr( 10 ) + Chr( 10 ) ) )
return
FUNCTION RTrimEOL( cFile )
DO WHILE Right( cFile, 1 ) $ Chr( 13 ) + Chr( 10 )
cFile := hb_StrShrink( cFile, 1 )
ENDDO
RETURN cFile
//----------------------------
Den 2021-06-28 kl. 18:52, skrev Luigi Ferraris:
> Hi friends,
> I was reading harbour/bin/check.hb and I found this function
> STATIC FUNCTION RTrimEOL( cFile )
>
> DO WHILE Right( cFile, 1 ) $ Chr( 13 ) + Chr( 10 )
> cFile := hb_StrShrink( cFile, 1 )
> ENDDO
>
> RETURN cFile
>
> *If* this function *serve to remove all DOS eol* from the end of a