On 2020-12-23, at 09:06:18, Kirk Wolf wrote:
>
> OK then:
>
> #pragma convert("UTF-8")
>
Thanks.
But that's a single instance. ISPF Edit supports 56 terminal
code pages, listed in the Ref., and numerous code pages for
subject files. I don't know where they're listed; perhaps
anything that LE supports. There's a caution that metacharacters
in regular expressions will be intereprete according to the
CCSID of the controlling terminal. How? I'm envisioning
an enormous "switch" with a "case" and a pragma for each.
The support is magnificent. A file tagged with CCSID is
rendered correctly, within the capability of the terminal.
UTF-8 file and Cyrillic terminal just works.
Puzzlingly, I see no mention of locale sensitivity in the
Ref. for regcomp().
Interpreting metacharacters in regex according to the terminal
CCSID makes it impractical to author portable Edit macros
containing regex.
> > This is the way that we do it -
> >
> > #pragma convert("ISO8859-1")
> > const char* ASCII_LITERAL = "a literal string in ISO8859-1";
> > #pragma convert(pop)
> >
> I'm more interested in the wildly popular UTF-8.
Thanks again,
gil