Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: "C's Biggest Mistake" Date: Sat, 07 Apr 2018 19:21:31 -0700 Organization: None to speak of Lines: 26 Message-ID: References: <2%LxC.241942$Oy5.103980@fx11.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="f71fbdb4a5f2d80925783207f7b7966e"; logging-data="16624"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/goRD2iOImf9m7kOopigBN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:RJxtl3F0+/gGiVcTbZ88xTuhexE= sha1:pta4koxvCrKJNoxVZ/AkvOFYfYA= Xref: csiph.com comp.lang.c:128914 bartc writes: > On 08/04/2018 00:03, Keith Thompson wrote: >> The advantage of writing isupper(c) is even greater if you care about >> letters outside the English alphabet. Imagine having accented letters >> in your name and having to deal with software written by people with >> your attitude. "Sorry, your name is not valid." > > If I was involved in that these days I would make sure it worked properly. And yet you don't seem to mind assuming that all upper case letters have values in the range 'A' ... 'Z'. > This code doesn't work on Windows: [...] > strupr(s); [...] strupr() is non-standard, Microsoft-specific, and deprecated. (Microsoft's documentation incorrectly claims that it's defined by POSIX.) -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"