Hello, Jeffrey Walton, le lun. 12 août 2019 22:59:56 -0400, a ecrit: > The tolower trick of setting the 5th bit is not portable. C does not > guarantee the trick. > > for (number = 0, c = *cp | 0x20; ... )
Indeed, but GNU Mach does talk ASCII, it's not planned to use some other encoding any day. > It may be a good idea to just call tolower on *cp. We do not have 'tolower' inside the kernel. (and if we had, it would use the 5th bit trick :) ) Samuel