mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Exception message encoding
This commit is contained in:
parent
ad2df7e264
commit
9fb22aa346
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ implementation
|
|||
|
||||
uses
|
||||
Forms, Controls, Dialogs, LCLProc, LCLStrConsts, syncobjs,
|
||||
uDebug, uLng, uGlobs, uDCVersion, DCOSUtils, LazUTF8;
|
||||
uDebug, uLng, uGlobs, uDCVersion, DCOSUtils, LazUTF8, DCConvertEncoding;
|
||||
|
||||
type
|
||||
THandleException = class
|
||||
|
|
@ -137,7 +137,7 @@ begin
|
|||
Msg := ExceptionText;
|
||||
|
||||
if FindInvalidUTF8Character(PChar(Msg), Length(Msg), False) > 0 then
|
||||
Msg := AnsiToUtf8(Msg);
|
||||
Msg := CeSysToUtf8(Msg);
|
||||
if (Msg <> '') and (Msg[length(Msg)] = LineEnding) then Delete(Msg, Length(Msg), 1);
|
||||
|
||||
with Application do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue