https://bugzilla.mindrot.org/show_bug.cgi?id=2643

Darren Tucker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2908|                            |ok-
              Flags|                            |

--- Comment #3 from Darren Tucker <[email protected]> ---
Comment on attachment 2908
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2908
use an ASCII tolower replacement for lowercasing strings

>+int
>+tolowerc(int c)
>+{
>+      if (c < (int)'A' || c > (int)'Z')

That's wrong for EBCDIC systems since the alphabet is not contiguous.

>+              return c;
>+      return c - ((int)'A' - (int)'a');
>+}

Does the C standard guarantee that the offset between upper and
lowercase characters is constant?  It is in ASCII and EBCDIC.  What
else is out there?

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to