bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] IBM z/OS + EBCDIC support


From: Ben Pfaff
Subject: Re: [PATCH] IBM z/OS + EBCDIC support
Date: Sat, 26 Sep 2015 09:08:45 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Sep 26, 2015 at 12:39:52AM -0400, Daniel Richard G. wrote:
> I'm happy to report that test-c-ctype in Git ff1ef114 now passes with
> both signed and unsigned EBCDIC chars on z/OS. Thank you for chasing
> this down!

A "char" configured as signed in EBCDIC violates the ANSI C standard,
which says:

     If a member of the basic execution character set is stored in a
     char object, its value is guaranteed to be positive.

whereas the "basic execution character set" is defined as:

     Both the basic source and basic execution character sets shall have
     the following members: the 26 uppercase letters of the Latin
     alphabet

             A B C D E F G H I J K L M
             N O P Q R S T U V W X Y Z
     the 26 lowercase letters of the Latin alphabet
             a b c d e f g h i j k l m
             n o p q r s t u v w x y z
     the 10 decimal digits
             0 1 2 3 4 5 6 7 8 9
     the following 29 graphic characters
             ! " # % & ' ( ) * + , - . / :
             ; < = > ? [ \ ] ^ _ { | } ~
     the space character, and control characters representing horizontal
     tab, vertical tab, and form feed.

Do people actually used signed "char" with EBCDIC?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]