From 0a6aed463060ea087dc8d61d07d83b03bc0e02a7 Mon Sep 17 00:00:00 2001 From: lazarus-bart Date: Sun, 12 Jan 2020 12:47:54 +0000 Subject: [PATCH] LazEdit: no need to convert ConfigDir to ANSI encoding. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7271 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- applications/lazedit/main.pp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/applications/lazedit/main.pp b/applications/lazedit/main.pp index 3c3c8ba55..320e247c7 100644 --- a/applications/lazedit/main.pp +++ b/applications/lazedit/main.pp @@ -1652,10 +1652,7 @@ begin end; if (_PCP <> EmptyStr) then begin - _PCP := ExcludeTrailingPathdelimiter(ExpandFileName(_PCP)); - //MyGetOpt returns parameters as UTF8 - //inifiles uses system-encoding - ConfigFileDir := Utf8ToWinCP(_PCP); + ConfigFileDir := ExcludeTrailingPathdelimiter(ExpandFileName(_PCP)); end; {$endif} end;