Lines Matching refs:dos
145 int dos_to_wchar(doscp_t *cp, char *dos, wchar_t *wchar, size_t len)
151 r=iconv(cp->from, &dos, &in_len, (char **)&dptr, &out_len);
204 wchar_t *wchar, char *dos, size_t len, int *mangled)
206 safe_iconv(cp->to, wchar, dos, len, mangled);
257 int dos_to_wchar(doscp_t *cp, char *dos, wchar_t *wchar, size_t len)
261 for(i=0; i<len && dos[i]; i++) {
262 char c = dos[i];
275 wchar_t *wchar, char *dos, size_t len, int *mangled)
281 dos[i] = c;
283 dos[i] = cp->to_dos[c & 0x7f];
284 if(dos[i] == '\0') {
285 dos[i]='_';