| version 1.8, 2004/01/22 01:10:04 | version 1.9, 2004/06/20 02:57:47 | 
| Line 31  static void rcnvfcb(char *dst, UINT dlen | Line 31  static void rcnvfcb(char *dst, UINT dlen | 
 | if (c == 0) { | if (c == 0) { | 
 | break; | break; | 
 | } | } | 
| #if defined(OSLANG_SJIS) || defined(OSLANG_EUC) | #if defined(OSLANG_SJIS) || defined(OSLANG_EUC) || defined(OSLANG_UTF8) | 
 | if ((((c ^ 0x20) - 0xa1) & 0xff) < 0x3c) { | if ((((c ^ 0x20) - 0xa1) & 0xff) < 0x3c) { | 
 | if ((!slen) || (src[0] == '\0')) { | if ((!slen) || (src[0] == '\0')) { | 
 | break; | break; | 
| Line 77  static void rcnvfcb(char *dst, UINT dlen | Line 77  static void rcnvfcb(char *dst, UINT dlen | 
 |  |  | 
 | static BOOL realname2fcb(char *fcbname, FLINFO *fli) { | static BOOL realname2fcb(char *fcbname, FLINFO *fli) { | 
 |  |  | 
 |  | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) | 
 |  | char    sjis[MAX_PATH]; | 
 |  | #endif | 
 | char    *realname; | char    *realname; | 
 | char    *ext; | char    *ext; | 
 |  |  | 
 | #if defined(OSLANG_EUC) | #if defined(OSLANG_EUC) | 
 | char            sjis[MAX_PATH]; |  | 
 |  |  | 
 | codecnv_euc2sjis(sjis, sizeof(sjis), fli->path, sizeof(fli->path)); | codecnv_euc2sjis(sjis, sizeof(sjis), fli->path, sizeof(fli->path)); | 
 | realname = sjis; | realname = sjis; | 
 |  | #elif defined(OSLANG_UTF8) | 
 |  | oemtext_oem2sjis(sjis, sizeof(sjis), fli->path, sizeof(fli->path)); | 
 |  | realname = sjis; | 
 | #else | #else | 
 | realname = fli->path; | realname = fli->path; | 
 | #endif | #endif | 
 | FillMemory(fcbname, 11, ' '); | FillMemory(fcbname, 11, ' '); | 
 |  | // ToDo: SJISに変換済みなのに OEM依存してる | 
 | ext = file_getext(realname); | ext = file_getext(realname); | 
 | rcnvfcb(fcbname+0, 8, realname, ext - realname); | rcnvfcb(fcbname+0, 8, realname, ext - realname); | 
 | rcnvfcb(fcbname+8, 3, ext, (UINT)-1); | rcnvfcb(fcbname+8, 3, ext, (UINT)-1); |