Skip to content
Snippets Groups Projects
Commit bf95f8a8 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

If the terminal is UTF-8 and the to/subject/from is NOT, xlat to

utf-8 at start.

This may be the issue Keyop was seeing.
parent 3a04eb99
No related branches found
No related tags found
No related merge requests found
Pipeline #5577 passed
...@@ -2058,8 +2058,20 @@ while((drop_file_name = file_getcase(system.node_dir + "editor.inf"))!=undefined ...@@ -2058,8 +2058,20 @@ while((drop_file_name = file_getcase(system.node_dir + "editor.inf"))!=undefined
info = drop_file.readAll(); info = drop_file.readAll();
drop_file.close(); drop_file.close();
subj=strip_ctrl(info[0]); subj=strip_ctrl(info[0]);
if (pmode & P_UTF8) {
if (!str_is_utf8(subj))
subj = utf8_encode(subj);
}
to=strip_ctrl(info[1]); to=strip_ctrl(info[1]);
if (pmode & P_UTF8) {
if (!str_is_utf8(to))
to = utf8_encode(to);
}
from=strip_ctrl(info[3]); from=strip_ctrl(info[3]);
if (pmode & P_UTF8) {
if (!str_is_utf8(from))
from = utf8_encode(from);
}
} }
} }
file_remove(drop_file_name); file_remove(drop_file_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment