summaryrefslogtreecommitdiff
path: root/graphics/dia/files/patch-lib::charconv.c
blob: ee085c256d3521dfcfd4dcc94993fe666e0e20f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$FreeBSD$

--- lib/charconv.c	2002/06/03 07:54:31	1.1
+++ lib/charconv.c	2002/06/03 08:10:29
@@ -98,7 +98,8 @@
 
       if ((*charset == NULL) ||
           (0==strcmp(*charset,"US-ASCII")) ||
-          (0==strcmp(*charset,"ANSI_X3.4-1968"))) {
+          (0==strcmp(*charset,"ANSI_X3.4-1968")) ||
+          (**charset == '\0')) {
               /* we got basic stupid ASCII here. We use its sane
                  superset instead. Especially since libxml2 doesn't like
                  the pedantic name of ASCII. */