Subversion Repositories SvarDOS

Rev

Rev 610 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 610 Rev 611
Line 70... Line 70...
70
  NLS_MAKESURE          = 0x0709,
70
  NLS_MAKESURE          = 0x0709,
71
 
71
 
72
  NLS_ERR_FILEPATHTWICE = 0x0900,
72
  NLS_ERR_FILEPATHTWICE = 0x0900,
73
  NLS_ERR_BADPATH       = 0x0901,
73
  NLS_ERR_BADPATH       = 0x0901,
74
  NLS_ERR_READFAIL      = 0x0902,
74
  NLS_ERR_READFAIL      = 0x0902,
75
  NLS_ERR_INVPARAM      = 0x0903
75
  NLS_ERR_INVPARAM      = 0x0903,
-
 
76
  NLS_ERR_INVFORMAT     = 0x0904,
-
 
77
  NLS_ERR_NOTLOCALCFG   = 0x0905
76
};
78
};
77
 
79
 
78
 
80
 
79
static void output(const char *s) {
81
static void output(const char *s) {
80
  _asm {
82
  _asm {
Line 410... Line 412...
410
  /* if no file path provided, look into %DOSDIR%\CFG\COUNTRY.SYS */
412
  /* if no file path provided, look into %DOSDIR%\CFG\COUNTRY.SYS */
411
  if (fname[0] == 0) default_country_path(fname);
413
  if (fname[0] == 0) default_country_path(fname);
412
 
414
 
413
  x = country_read(&cntdata, fname);
415
  x = country_read(&cntdata, fname);
414
  if (x != 0) {
416
  if (x != 0) {
-
 
417
    if (x == COUNTRY_ERR_INV_FORMAT) {
-
 
418
      nls_puts(NLS_ERR_INVFORMAT);
-
 
419
    } else if (x == COUNTRY_ERR_NOT_LOCALCFG) {
-
 
420
      nls_puts(NLS_ERR_NOTLOCALCFG);
-
 
421
    } else {
415
    nls_puts(NLS_ERR_READFAIL);
422
      nls_puts(NLS_ERR_READFAIL);
-
 
423
    }
416
    return(2);
424
    return(2);
417
  }
425
  }
418
 
426
 
419
  changedflag = 0;
427
  changedflag = 0;
420
 
428