(cross-posting)
On 2020-12-22, at 09:31:06, Kirk Wolf wrote:
>
> 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. On my
desktop I can:
791 $ locale
LC_CTYPE="en_US.UTF-8"
...
792 $ echo aπb | sed 's/../x/'
xb
The regex substitution converts the first two characters,
the 'a' and the 'π' to the 'x'.
Suppose I'm Editing a similar file with ISPF Edit, CTYPE UTF-8,
which ISPF supports, and a CP875 terminal (which ISPF supports
but I don't have). How does the analogous Edit command do
its magic:
Change r'..' 'x'
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN