$NetBSD: patch-ag,v 1.2 2005/04/13 16:45:46 rillig Exp $

--- terminal.c.orig	2005-04-06 23:15:37.000000000 +0200
+++ terminal.c	2005-04-06 23:15:48.000000000 +0200
@@ -5818,7 +5818,7 @@
 		if (modifiers & PKM_CONTROL)
 		    c &= 0x1f;
 		else if (modifiers & PKM_SHIFT)
-		    c = toupper(c);
+		    c = toupper((unsigned char)c);
 	    }
 	    *p++ = c;
 	    goto done;
