Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!sheba.arc.nasa.gov!schoch From: schoch@sheba.arc.nasa.gov (Steve Schoch) Newsgroups: comp.windows.x Subject: twm and "NoCaseSensitive" Message-ID: <1990Nov6.212938.20457@news.arc.nasa.gov> Date: 6 Nov 90 21:29:38 GMT Sender: usenet@news.arc.nasa.gov (USENET Administration) Reply-To: schoch@trident.arc.nasa.gov (Steve Schoch) Organization: NASA Ames Research Center, Moffett Field, CA Lines: 22 If you want your icons sorted in case insensitve order in your window manager you say "NoCaseSensitive" in your .twmrc. This causes twm to use XmuCompareISOLatin1() instead of strcmp() when it sorts the icon names. The problem is that when given two strings that are different, XmuCompareISOLatin1() returns the difference of the first non-match, without first converting them to lower-case. In short it does something like this: for(...; *first && *second; first++,second++) { a = tolower(*first); b = tolower(*second); if (a != b) break; } return (*first - *second); In order to have the ordering correct, the function should return (a - b), not (*first - *second). Has this been fixed in a patch that I missed? Steve