]> andersk Git - moira.git/blobdiff - lib/fixname.c
Command line printer manipulation client, and build goo.
[moira.git] / lib / fixname.c
index dc37c0e597c0a65167962cc11c8136775ff95fb6..d77bf37afb17179058a4fe4594ba401c4f79ec20 100644 (file)
@@ -48,7 +48,7 @@ void FixName(char *ilnm, char *ifnm, char *last, char *first, char *middle)
   strncpy(first, ifnm, FIRST_LEN);
 }
 
-void FixCase(char *p)
+void FixCase(unsigned char *p)
 {
   int up;      /* Should next letter be uppercase */
   int pos;     /* Position within word */
@@ -69,6 +69,8 @@ void FixCase(char *p)
        }
       else if (*p == '\'')     /* If ', next letter should be upper only */
        up = (pos == 2);        /* if the ' is the 2nd char in the name */
+      else if (*p >= 0x80)      /* If the high bit is set, don't touch it. */
+       up = 0;
       else
        up = 1;                 /* If other punctuation (eg, -), upper */
     }
This page took 0.084474 seconds and 4 git commands to generate.