﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1805	Functions that modify files should not change encoding	PsaltyDS	Jpm	"Functions like _FileWriteToLine() and _ReplaceStringInFile() should not rewrite the file with default ANSI encoding, since it is trivial to get the old encoding by FileGetEncoding() first.  

For example, the FileOpen() for write within _ReplaceStringInFile() should be:  
{{{
    ;===============================================================================
    ;== Open the output file in write mode
    ;===============================================================================
    Local $iEncoding = FileGetEncoding($szFileName)
    Local $hWriteHandle = FileOpen($szFileName, $iEncoding + $FO_OVERWRITE)
    If $hWriteHandle = -1 Then Return SetError(2, 0, -1)
}}}

"	Bug	closed	3.3.7.0	Standard UDFs	3.3.6.1	None	Fixed		
