fix license quoting in files.yaml
[gnulib.git] / lib / unictype / joininggroup_byname.c
index ca9f1a6..e5324af 100644 (file)
@@ -1,5 +1,5 @@
 /* Arabic joining group of Unicode characters.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011-2014 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2011.
 
    This program is free software: you can redistribute it and/or modify it
@@ -35,7 +35,7 @@ uc_joining_group_byname (const char *joining_group_name)
       char buf[MAX_WORD_LENGTH + 1];
       const struct named_joining_group *found;
 
-      /* Copy joining_group_name into buf, converting '_' to ' '.  */
+      /* Copy joining_group_name into buf, converting '_' and '-' to ' '.  */
       {
         const char *p = joining_group_name;
         char *q = buf;
@@ -44,7 +44,7 @@ uc_joining_group_byname (const char *joining_group_name)
           {
             char c = *p;
 
-            if (c == '_')
+            if (c == '_' || c == '-')
               c = ' ';
             *q = c;
             if (c == '\0')