Skip to content
Snippets Groups Projects
Commit a25d5369 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

The "Soft-CR" strip/expansion feature is N/A for UTF-8 editors

Updated help text for "Support UTF-8 Encoding" for external editors.
parent 00afb97c
No related branches found
No related tags found
No related merge requests found
Pipeline #5791 passed
...@@ -1882,6 +1882,9 @@ void xedit_cfg() ...@@ -1882,6 +1882,9 @@ void xedit_cfg()
snprintf(opt[k++],MAX_OPLN,"%-27.27s%s","Expand Line Feeds to CRLF" snprintf(opt[k++],MAX_OPLN,"%-27.27s%s","Expand Line Feeds to CRLF"
,cfg.xedit[i]->misc&EXPANDLF ? "Yes":"No"); ,cfg.xedit[i]->misc&EXPANDLF ? "Yes":"No");
const char* p; const char* p;
if(cfg.xedit[i]->misc&XTRN_UTF8) {
p = "N/A";
} else {
switch(cfg.xedit[i]->soft_cr) { switch(cfg.xedit[i]->soft_cr) {
case XEDIT_SOFT_CR_EXPAND: case XEDIT_SOFT_CR_EXPAND:
p = "Convert to CRLF"; p = "Convert to CRLF";
...@@ -1897,6 +1900,7 @@ void xedit_cfg() ...@@ -1897,6 +1900,7 @@ void xedit_cfg()
p = "Unspecified"; p = "Unspecified";
break; break;
} }
}
snprintf(opt[k++],MAX_OPLN,"%-27.27s%s","Handle Soft CRs", p); snprintf(opt[k++],MAX_OPLN,"%-27.27s%s","Handle Soft CRs", p);
snprintf(opt[k++],MAX_OPLN,"%-27.27s%s","Strip FidoNet Kludges" snprintf(opt[k++],MAX_OPLN,"%-27.27s%s","Strip FidoNet Kludges"
,cfg.xedit[i]->misc&STRIPKLUDGE ? "Yes":"No"); ,cfg.xedit[i]->misc&STRIPKLUDGE ? "Yes":"No");
...@@ -2170,6 +2174,8 @@ void xedit_cfg() ...@@ -2170,6 +2174,8 @@ void xedit_cfg()
} }
break; break;
case 12: case 12:
if(cfg.xedit[i]->misc & XTRN_UTF8)
break; // N/A
k = cfg.xedit[i]->soft_cr; k = cfg.xedit[i]->soft_cr;
strcpy(opt[0],"Unspecified"); strcpy(opt[0],"Unspecified");
strcpy(opt[1],"Convert to CRLF"); strcpy(opt[1],"Convert to CRLF");
...@@ -2224,8 +2230,9 @@ void xedit_cfg() ...@@ -2224,8 +2230,9 @@ void xedit_cfg()
uifc.helpbuf= uifc.helpbuf=
"`Support UTF-8 Encoding:`\n" "`Support UTF-8 Encoding:`\n"
"\n" "\n"
"If this editor can detect and support UTF-8 terminals, set this option\n" "If this editor can handle UTF-8 encoded message text and header fields\n"
"to `Yes`." "and can detect and support UTF-8 terminal input and output, set this\n"
"option to `Yes`."
; ;
k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Support UTF-8 Encoding" ,"Support UTF-8 Encoding"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment