Changeset 307
- Timestamp:
- Jul 31, 2009, 1:41:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/param/loadparm.c
r236 r307 1461 1461 string_set(&Globals.szGuestaccount, GUEST_ACCOUNT); 1462 1462 1463 #if defined (__OS2__) 1464 /* search the system codepage and set OS2CodePageStr */ 1465 unsigned long _System DosQueryCp (unsigned long ulLength, unsigned long *pCodePageList, unsigned long *pDataLength); 1466 pstring OS2CodePageStr; 1467 unsigned long OS2CodePage[3]; 1468 unsigned long OS2CodePageLen; 1469 if ( DosQueryCp( sizeof(OS2CodePage), OS2CodePage, &OS2CodePageLen ) ) 1470 slprintf(OS2CodePageStr, sizeof(OS2CodePageStr) -1, "SYSTEM"); 1471 else 1472 slprintf(OS2CodePageStr, sizeof(OS2CodePageStr) -1, "IBM-%u", OS2CodePage[0]); 1473 #endif 1474 1463 1475 #ifndef __OS2__ 1464 1476 /* using UTF8 by default allows us to support all chars */ … … 1466 1478 #else 1467 1479 /* On OS/2, using UTF8 causes problems with display of foreign 1468 characters - default to IBM-850codepage */1469 string_set(&Globals.unix_charset, "IBM-850");1480 characters - default to system codepage */ 1481 string_set(&Globals.unix_charset, OS2CodePageStr); 1470 1482 #endif 1471 1483 … … 1478 1490 #else 1479 1491 /* On OS/2, using UTF8 causes problems with display of foreign 1480 characters - default to IBM-850codepage */1481 string_set(&Globals.display_charset, "IBM-850");1492 characters - default to system codepage */ 1493 string_set(&Globals.display_charset, OS2CodePageStr); 1482 1494 #endif 1483 1495 … … 1491 1503 #else 1492 1504 /* On OS/2, using UTF8 causes problems with display of foreign 1493 characters - default to IBM-850codepage */1494 string_set(&Globals.dos_charset, "IBM-850");1505 characters - default to system codepage */ 1506 string_set(&Globals.dos_charset, OS2CodePageStr); 1495 1507 #endif 1496 1508 /*
Note:
See TracChangeset
for help on using the changeset viewer.