Re: <ctype.h> toLower()

From: Richard Heathfield (dontmail_at_address.co.uk.invalid)
Date: 12/06/03


Date: Sat, 6 Dec 2003 13:11:00 +0000 (UTC)

Jumbo wrote:

>
> "Richard Heathfield" <dontmail@address.co.uk.invalid> wrote in message
> news:bqs2vr$ao3$1@titan.btinternet.com...
>> Jumbo wrote:
>> > "Richard Heathfield" <dontmail@address.co.uk.invalid> wrote in message
>> > news:bqrtvu$ane$1@sparta.btinternet.com...
>> >> Jumbo wrote:
>> >>
>> >> > I don't agree that it will work in every case as it will
>> >> > not work in object-code -libraries.
>> >>
>>
>> I have already explained that I have plenty of libraries
>> which contain calls to tolower(), and they work just fine.
>> You said this was impossible: "it will not work in
>> object-code -libraries". And yet my libraries continue
>> to work correctly. [...]
>
> What machine/OS/compiler was your object code compiled on ?

The question is meaningless, since (a) it is source code, not object code,
which is compiled; the /output/ of the compilation is object code, and (b)
it doesn't matter what machine my code is compiled on, as long as it's
compiled by a conforming hosted implementation (and, in many cases, it
doesn't even have to be a /hosted/ implementation).

> And does it contain a lookup table implementation or another
> implementation?

Who cares, as long as it's a conforming implementation?

>> > You can't beat a good old hand rolled now and then ;-)
>>
>> On this occasion, however, the pre-packaged article is very much the
>> superior brand.
> Only if you like pretty packages.

Pretty packages that work everywhere are preferable to ugly packages that
work only on a very restricted set of environments.

<snip>

>> > We're talking about writing C or C++ code that works(hopefully) on all
>> > ASCII based platforms.
>>
>> Then find a newsgroup where such discussion is topical. Here, we don't
>> restrict ourselves to ASCII.
>>
> Speak for yourself

I do, just as you speak only for yourself.

> ASCII is non restrictive is a very common character set standards which
> Unicode and other standards support fully and there is only one other
> standard that is know, unless you have any others, and that is EBCDIC
> which is hardly ever used

I've used EBCDIC on - hmm, let me think - six different sites, five of them
being large commercial organisations. EBCDIC is still in wide use in
corporate environments, and will remain so for the foreseeable future,
because EBCDIC is what IBM mainframe hardware uses, and IBM mainframe
hardware is what many large corporations insist on using, for the excellent
reason that mainframes are fast, powerful, reliable, and durable.

> It was introduced in 1964 for pete's sake
> It is only applicable for 1 kind of machine. All others are ASCII if they
> have a character set AFAIK.

<sigh depth="ironic">
All The World's A Vax.
</sigh>

> ASCII is the standard now

It's /a/ standard, not /the/ standard.

> and it's an important issue to be aware of when
> learning C or C++.

No, it's an important issue to be aware of when programming on ASCII
machines. It's irrelevant to C and C++, and therefore it's irrelevant to
this newsgroup.

> There is no more approriate newsgroup to discuss how C++ interphases with
> ASCII.

A newsgroup where ASCII is topical would be a better match.

> Why don't you learn to a bit more flexible.

It is precisely because I want my code to be flexible that I don't restrict
it to ASCII machines only.

-- 
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton


Relevant Pages

  • Re: A problem to read a SEG-file using Fortran90 code on PC
    ... IBM EBCDIC codes for characters convert to normal ascii codes, ... from IBM mainframe sources.. ... If you have floating point values stored in a bit representation you ...
    (comp.lang.fortran)
  • Re: Problem with Write File
    ... clearly written UNICODE text to the file. ... app to read the file, it's probably trying to read it as ASCII, ... because you didn't include a BOM at the beginning ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.pocketpc.developer)
  • Re: Unicode: matching a word and unaccenting characters
    ... You can always browse this newsgroup at Google http://groups.google.com/group/comp.lang.python or Gmane http://dir.gmane.org/gmane.comp.python.general ... working in ascii, but unfortunately there is no equivalent when working ...
    (comp.lang.python)
  • Re: System 360 EBCDIC vs. ASCII (was Re: High order bit in 31/24 bit address)
    ... Anyone remember the IBM mainframe in 8 bit octal mode? ... Of Tom Schmidt ... Subject: System 360 EBCDIC vs. ASCII (was Re: High order bit in 31/24 bit ...
    (bit.listserv.ibm-main)
  • Re: Binary or Ascii Text?
    ... I knew it was an ascii text file. ... after compilation, I got a "Test" file and it was a binary executable ... computer know the type of a given file by writing code in C? ... It removes the CR from the CRLF pair and ignores any trailing ^Z character. ...
    (comp.lang.c)