You seem to be confirming what I wrote; if the locale is UTF-8 then your 
character data should be UTF-8. The ¬ character in UTF-8 has a different 
encoding from the ¬ character in Unicode, so there is no issue of a zero octet. 
'00AC'X is not a valid UTF-8 string.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Paul Gilmartin [[email protected]]
Sent: Monday, May 8, 2023 12:42 PM
To: [email protected]
Subject: Re: Logical Nor (¬) in ASCII-based code pages?

On Mon, 8 May 2023 16:21:06 +0000, Seymour J Metz wrote:

>Is charout() relevant in a Unicode context? AFAIK, you need to transform 
>Unicode data with, e.g., UTF-8, For charout() to handle it.
>
FSVO "relevant":
    18 $ locale; rxx "call charout , '¬'" | od -tx1
    LC_CTYPE="en_US.UTF-8"
        ...
    0000000    c2  ac
    0000002
    819 $

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to