820
821
822
823
824
825
826
827
828
829
830
831
832
833
|
void set_code_page(Uint16 n) {
int c,i,j,s;
const char*v;
unsigned char*d;
Uint8 b[32];
FILE*fp;
if(!n) return;
if(fontdata && fontdata!=pcfont) fatal("Multiple code page specifications\n");
optionquery[1]=Q_codepage;
v=xrm_get_resource(resourcedb,optionquery,optionquery,2);
if(!v || !*v) {
if(n==437) return;
fatal("Cannot load code page %d; code page file is not configured\n",n);
}
|
>
|
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
|
void set_code_page(Uint16 n) {
int c,i,j,s;
const char*v;
unsigned char*d;
Uint8 b[32];
FILE*fp;
if(!n) return;
if(n==367) n=437;
if(fontdata && fontdata!=pcfont) fatal("Multiple code page specifications\n");
optionquery[1]=Q_codepage;
v=xrm_get_resource(resourcedb,optionquery,optionquery,2);
if(!v || !*v) {
if(n==437) return;
fatal("Cannot load code page %d; code page file is not configured\n",n);
}
|