[Bug 2643] Can not ssh with tr_TR.UTF-8 locale (Bad configuration options)

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Dec 9 13:27:05 AEDT 2016


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

Darren Tucker <dtucker at zip.com.au> changed:

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

--- Comment #3 from Darren Tucker <dtucker at zip.com.au> ---
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.


More information about the openssh-bugs mailing list