Exactly; while it might be possible to implement a locale-dependent compare instruction, I can't imagine a business case.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Don Poitras <[email protected]> Sent: Wednesday, May 1, 2019 4:33 PM To: [email protected] Subject: Re: Bigotry against mixed case was Re: Upper case for ISPF and SDSF ICU covers collation and lots more. Open source. http://secure-web.cisco.com/1pNbCjWo46McPglIaRrKVDaQ2BEzRrROoiyCl1_vs0lBNxDEYimvkgVQYABBrCe3N9a_njFf4vzGd4YshIVkDTzMmbYbVDEidqoCQIrF_s34fnClSmfDmjghF5jkqjs8ljBAQG4ndFvSHtfZfDrcEomqfcEJjLQm_1JiX-sUiScL3SbAdgi8Ow3tuZ4_CX62BbDxklbCfJqiGzhfvlq8PoLf75n4TTC2aRR9eDZcYpzfBGvDqymryUbmomZvWwLaOQHeaLGZJf_1fO13fzO_nuYJBg2mUbz_VOEOXkeXKC5ys0c3UAF4s4ehFjZmAFM0_itwuMVrBm2tNtVPpwbseJHoQwOCyYtnQI3MHmiX1M3TX10pk1YcclW8DI95Vzwp5Cho_4IxCDVVcvMN08970kwBDgYnDSr7sta4yaaeBaqeyW5bmHzwAdRefoWo47uFU/http%3A%2F%2Fuserguide.icu-project.org%2Fcollation In article <byapr05mb55912ac45349653069b4736599...@byapr05mb5591.namprd05.prod.outlook.com> you wrote: > The collating sequence for a code page is neither right nor wrong, it just > is. The appropriate way to sort is to take locale into account. That implies > that two sorts of the same data in the same code page on the same machine may > be different. > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > ________________________________________ > From: IBM Mainframe Discussion List <[email protected]> on behalf of > Paul Gilmartin <[email protected]> > Sent: Tuesday, April 30, 2019 9:09 PM > To: [email protected] > Subject: Re: Bigotry against mixed case was Re: Upper case for ISPF and SDSF > On Tue, 30 Apr 2019 21:05:00 -0300, Clark Morris wrote: > > > >A more important reason was that addition of mixed case in either > >ISO/ASCII changed a compare from a simple Compare Logical Character > >into a subroutine. While this was always true if a true dictionary or > >phone book sort is wanted, this would make it true for virtually all > >compares. Should A = a? If not should the sequence be A,a,B,b ....? > > > IBM 7030 did something like the latter, but neither is right; it's worse. > An example: > 1234 > camel > Camel > CAMEL > canary > Canary > CANARY > cat > Cat > CAT > ... Note that "CAMEL" comes after "Camel" but before "canary". So you can't > simply say either that A<a or A>a. > But would you argue that computers should scorn English lexical conventions? > -- gil -- Don Poitras - SAS Development - SAS Institute Inc. - SAS Campus Drive [email protected] (919) 531-5637 Cary, NC 27513 ---------------------------------------------------------------------- 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
