Thread: [libposix-development] Remarks about ctype support
Status: Pre-Alpha
Brought to you by:
hdante
From: Henrique A. <hd...@gm...> - 2009-06-30 03:03:53
|
I think we can't assume that the character set is ASCII compatible. We probably could restrict which character sets we'd allow, but there's at least one Unix vendor/user (IBM) that probably won't accept that. A safer implementation is the trivial case 'A': case 'B': case 'C': etc. (the compiler must optimize those in ASCII systems). Refer to: http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html I think the only possible assumptions about the portable character set are that '0' to '9' are sequential and that '\0' == 0. -- Henrique Dante de Almeida hd...@gm... |
From: <jh...@gm...> - 2009-06-30 03:17:02
Attachments:
signature.asc
|
Yes, I was looking at that. To properly implement ctype I think we need to implement locale On Mon, Jun 29, 2009 at 10:03 PM, Henrique Almeida<hd...@gm...> wrote: > I think we can't assume that the character set is ASCII compatible. > We probably could restrict which character sets we'd allow, but > there's at least one Unix vendor/user (IBM) that probably won't accept > that. A safer implementation is the trivial case 'A': case 'B': case > 'C': etc. (the compiler must optimize those in ASCII systems). Refer > to: > > http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html > > I think the only possible assumptions about the portable character > set are that '0' to '9' are sequential and that '\0' == 0. > > -- > Henrique Dante de Almeida > hd...@gm... > > ------------------------------------------------------------------------------ > _______________________________________________ > Libposix-development mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libposix-development > -- John Haitas jh...@gm... |
From: Henrique A. <hd...@gm...> - 2009-06-30 04:51:32
|
We can do that in steps. Just assume the "POSIX" locale for now. 2009/6/30 <jh...@gm...>: > Yes, I was looking at that. To properly implement ctype I think we need to > implement locale > On Mon, Jun 29, 2009 at 10:03 PM, Henrique Almeida<hd...@gm...> wrote: >> >> I think we can't assume that the character set is ASCII compatible. >> We probably could restrict which character sets we'd allow, but >> there's at least one Unix vendor/user (IBM) that probably won't accept >> that. A safer implementation is the trivial case 'A': case 'B': case >> 'C': etc. (the compiler must optimize those in ASCII systems). Refer >> to: >> >> http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html >> >> I think the only possible assumptions about the portable character >> set are that '0' to '9' are sequential and that '\0' == 0. >> >> -- >> Henrique Dante de Almeida >> hd...@gm... >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Libposix-development mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libposix-development >> > > > > -- > John Haitas > jh...@gm... > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Libposix-development mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libposix-development > > -- Henrique Dante de Almeida hd...@gm... |
From: John H. <jh...@gm...> - 2009-06-30 05:07:07
|
OK, I'm going to call it a night... will look at it further tomorrow... Hope my contributions are of some value. Cheers, John On Jun 29, 2009, at 11:50 PM, Henrique Almeida wrote: > We can do that in steps. Just assume the "POSIX" locale for now. > > 2009/6/30 <jh...@gm...>: >> Yes, I was looking at that. To properly implement ctype I think we >> need to >> implement locale >> On Mon, Jun 29, 2009 at 10:03 PM, Henrique >> Almeida<hd...@gm...> wrote: >>> >>> I think we can't assume that the character set is ASCII compatible. >>> We probably could restrict which character sets we'd allow, but >>> there's at least one Unix vendor/user (IBM) that probably won't >>> accept >>> that. A safer implementation is the trivial case 'A': case 'B': case >>> 'C': etc. (the compiler must optimize those in ASCII systems). Refer >>> to: >>> >>> http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html >>> >>> I think the only possible assumptions about the portable character >>> set are that '0' to '9' are sequential and that '\0' == 0. >>> >>> -- >>> Henrique Dante de Almeida >>> hd...@gm... >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Libposix-development mailing list >>> Lib...@li... >>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>> >> >> >> >> -- >> John Haitas >> jh...@gm... >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Libposix-development mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libposix-development >> >> > > > > -- > Henrique Dante de Almeida > hd...@gm... > > ------------------------------------------------------------------------------ > _______________________________________________ > Libposix-development mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libposix-development -- John Haitas jh...@gm... |
From: Henrique A. <hd...@gm...> - 2009-06-30 23:03:27
|
The value of EXIT_SUCCESS must be zero, I've changed the constants in stdlib.h to typical values. 2009/6/30 John Haitas <jh...@gm...>: > OK, I'm going to call it a night... will look at it further tomorrow... > > Hope my contributions are of some value. > > Cheers, > John > > On Jun 29, 2009, at 11:50 PM, Henrique Almeida wrote: > >> We can do that in steps. Just assume the "POSIX" locale for now. >> >> 2009/6/30 <jh...@gm...>: >>> Yes, I was looking at that. To properly implement ctype I think we >>> need to >>> implement locale >>> On Mon, Jun 29, 2009 at 10:03 PM, Henrique >>> Almeida<hd...@gm...> wrote: >>>> >>>> I think we can't assume that the character set is ASCII compatible. >>>> We probably could restrict which character sets we'd allow, but >>>> there's at least one Unix vendor/user (IBM) that probably won't >>>> accept >>>> that. A safer implementation is the trivial case 'A': case 'B': case >>>> 'C': etc. (the compiler must optimize those in ASCII systems). Refer >>>> to: >>>> >>>> http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html >>>> >>>> I think the only possible assumptions about the portable character >>>> set are that '0' to '9' are sequential and that '\0' == 0. >>>> >>>> -- >>>> Henrique Dante de Almeida >>>> hd...@gm... >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Libposix-development mailing list >>>> Lib...@li... >>>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>>> >>> >>> >>> >>> -- >>> John Haitas >>> jh...@gm... >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Libposix-development mailing list >>> Lib...@li... >>> https://lists.sourceforge.net/lists/listinfo/libposix-development >>> >>> >> >> >> >> -- >> Henrique Dante de Almeida >> hd...@gm... >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Libposix-development mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libposix-development > > -- > John Haitas > jh...@gm... > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Libposix-development mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libposix-development > -- Henrique Dante de Almeida hd...@gm... |