$OpenBSD: patch-j2se_src_share_native_sun_font_t2k_t1_c,v 1.1 2006/07/28 13:18:45 kurt Exp $
--- j2se/src/share/native/sun/font/t2k/t1.c.orig	Tue Jul 18 16:07:09 2006
+++ j2se/src/share/native/sun/font/t2k/t1.c	Tue Jul 18 16:32:28 2006
@@ -2035,9 +2035,10 @@ static int PSNameToUnicode( char *PSName
 
     if ( firstChar >= 'A' && firstChar <= 'Z' )
       lookupIndex = firstChar - 'A';
-    else
+    else if ( firstChar >= 'a' && firstChar <= 'z' )
       lookupIndex = firstChar - 'a' + 26;
-
+    else /* underscore is also valid but not handled */
+      return 0;
 
     startIndex = PSNAME_START_INDEX[ lookupIndex ];
     endIndex = PSNAME_START_INDEX[ lookupIndex + 1 ];
