Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140332 | Differences between
and this patch

Collapse All | Expand All

(-)samba-3.0.23.orig/source/lib/util_unistr.c (+5 lines)
Lines 418-423 char *unistr2_tdup(TALLOC_CTX *ctx, cons Link Here
418
418
419
smb_ucs2_t toupper_w(smb_ucs2_t val)
419
smb_ucs2_t toupper_w(smb_ucs2_t val)
420
{
420
{
421
	lazy_initialize_conv();
421
	return upcase_table[SVAL(&val,0)];
422
	return upcase_table[SVAL(&val,0)];
422
}
423
}
423
424
Lines 427-432 smb_ucs2_t toupper_w(smb_ucs2_t val) Link Here
427
428
428
smb_ucs2_t tolower_w( smb_ucs2_t val )
429
smb_ucs2_t tolower_w( smb_ucs2_t val )
429
{
430
{
431
	lazy_initialize_conv();
430
	return lowcase_table[SVAL(&val,0)];
432
	return lowcase_table[SVAL(&val,0)];
431
}
433
}
432
434
Lines 436-441 smb_ucs2_t tolower_w( smb_ucs2_t val ) Link Here
436
438
437
BOOL islower_w(smb_ucs2_t c)
439
BOOL islower_w(smb_ucs2_t c)
438
{
440
{
441
	lazy_initialize_conv();
439
	return upcase_table[SVAL(&c,0)] != c;
442
	return upcase_table[SVAL(&c,0)] != c;
440
}
443
}
441
444
Lines 445-450 BOOL islower_w(smb_ucs2_t c) Link Here
445
448
446
BOOL isupper_w(smb_ucs2_t c)
449
BOOL isupper_w(smb_ucs2_t c)
447
{
450
{
451
	lazy_initialize_conv();
448
	return lowcase_table[SVAL(&c,0)] != c;
452
	return lowcase_table[SVAL(&c,0)] != c;
449
}
453
}
450
454
Lines 454-459 BOOL isupper_w(smb_ucs2_t c) Link Here
454
458
455
BOOL isvalid83_w(smb_ucs2_t c)
459
BOOL isvalid83_w(smb_ucs2_t c)
456
{
460
{
461
	lazy_initialize_conv();
457
	return valid_table[SVAL(&c,0)] != 0;
462
	return valid_table[SVAL(&c,0)] != 0;
458
}
463
}
459
464

Return to bug 140332