about summary refs log tree commit diff
path: root/locale/programs/charmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/charmap.c')
-rw-r--r--locale/programs/charmap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c
index b4bce4fe34..0c54c78ad4 100644
--- a/locale/programs/charmap.c
+++ b/locale/programs/charmap.c
@@ -99,6 +99,15 @@ charmap_read (const char *filename)
 			}
 		    }
 		}
+
+	      if (cmfile == NULL)
+		{
+		  /* Try the default directory.  */
+		  char path[sizeof (CHARMAP_PATH) + strlen (filename) + 1];
+
+		  stpcpy (stpcpy (stpcpy (path, CHARMAP_PATH), "/"), filename);
+		  cmfile = lr_open (path, charmap_hash);
+		}
 	    }
 	}