… | |
… | |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | */ |
18 | */ |
19 | |
19 | |
20 | #include "config.h" |
20 | #include "config.h" |
|
|
21 | #include "compat.h" |
21 | #include "error.h" |
22 | #include "error.h" |
22 | #include "compat.h" |
|
|
23 | #include "unicode.h" |
23 | #include "unicode.h" |
24 | |
24 | |
25 | #include <stdio.h> |
25 | #include <stdio.h> |
26 | #include <stdlib.h> |
26 | #include <stdlib.h> |
27 | #include <string.h> |
27 | #include <string.h> |
… | |
… | |
103 | (*config)->bluebits = value; |
103 | (*config)->bluebits = value; |
104 | else |
104 | else |
105 | psiconv_fatal(*config,0,0,"Configuration file %s, line %d: " |
105 | psiconv_fatal(*config,0,0,"Configuration file %s, line %d: " |
106 | "BlueBits should be between 1 and 32 or 0",filename,linenr); |
106 | "BlueBits should be between 1 and 32 or 0",filename,linenr); |
107 | } else if (!(strcasecmp(var,"characterset"))) { |
107 | } else if (!(strcasecmp(var,"characterset"))) { |
108 | if ((value >= 0) && (value <= 0)) |
108 | if ((value >= 0) && (value <= 1)) |
109 | psiconv_unicode_select_characterset(*config,value); |
109 | psiconv_unicode_select_characterset(*config,value); |
110 | else |
110 | else |
111 | psiconv_fatal(*config,0,0,"Configuration file %s, line %d: " |
111 | psiconv_fatal(*config,0,0,"Configuration file %s, line %d: " |
112 | "CharacterSet should be between 0 and 0", |
112 | "CharacterSet should be between 0 and 0", |
113 | filename,linenr); |
113 | filename,linenr); |