Changeset 339 for branches/samba-3.3.x/source/lib/charcnv.c
- Timestamp:
- Oct 8, 2009, 8:11:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/charcnv.c
r239 r339 56 56 { 57 57 const char *ret = NULL; 58 #ifndef __OS2__59 58 if (ch == CH_UTF16LE) ret = "UTF-16LE"; 60 59 else if (ch == CH_UTF16BE) ret = "UTF-16BE"; 61 #else62 if (ch == CH_UTF16LE) ret = "IBM-1200";63 else if (ch == CH_UTF16BE) ret = "IBM-1200";64 #endif65 60 else if (ch == CH_UNIX) ret = lp_unix_charset(); 66 61 else if (ch == CH_DOS) ret = lp_dos_charset(); … … 93 88 94 89 if (!ret || !*ret) ret = "ASCII"; 95 DEBUG(10, ("codepage: %s\n",ret));96 90 return ret; 97 91 } … … 396 390 return 0; 397 391 398 // DEBUG(10, ("convert_string: 1"));399 400 392 if (from != CH_UTF16LE && from != CH_UTF16BE && to != CH_UTF16LE && to != CH_UTF16BE) { 401 393 const unsigned char *p = (const unsigned char *)src; … … 405 397 unsigned char lastp = '\0'; 406 398 size_t retval = 0; 407 408 // DEBUG(10, ("convert_string: 2"));409 399 410 400 /* If all characters are ascii, fast path here. */ … … 439 429 } 440 430 return retval; 441 // DEBUG(10, ("convert_string: 3"));442 431 443 432 } else if (from == CH_UTF16LE && to != CH_UTF16LE) { … … 481 470 } 482 471 return retval; 483 // DEBUG(10, ("convert_string: 4"));484 472 485 473 } else if (from != CH_UTF16LE && from != CH_UTF16BE && to == CH_UTF16LE) { … … 627 615 628 616 again: 629 DEBUG(10,("convert_string_internal: convert_string(%s,%s): srclen=%u destlen=%u\n", 630 charset_name(from), charset_name(to), 631 (unsigned int)srclen, (unsigned int)destlen)); 617 632 618 633 619 retval = smb_iconv(descriptor,
Note:
See TracChangeset
for help on using the changeset viewer.