Issues with upcase table and lowcase table From codepages

Hames Kurma hames.kurma at
Mon Aug 22 16:20:29 MDT 2011

Hello Andrew:

This is Hames working on CIFS case insensitive support.

Using SAMBA case tables, the following test was done and the test failed for two characters:

1)      For every valid UTF8 character, say x

a.       Convert it to upper case by using the upper case table, result is say y

b.      If x and y are same then x was in upper case or does not have a upper case equivalent so nothing to do.

c.       If x and y are different then x was in lower case and y should be upper case, now convert y to lower case using lower case table, result is say z.

d.      If z and x are same then we are good, otherwise there is a bug in the upper or lower case conversion.

Did the exact opposite for the lower case table too.

Do you agree that this is a valid test?

Thank you,

From: Ephi Dror
Sent: Saturday, August 13, 2011 8:21 AM
To: Hames Kurma
Subject: Fwd: Issues with upcase table and lowcase table From codepages

Sent from my iPhone

Begin forwarded message:
From: Andrew Bartlett <abartlet at<mailto:abartlet at>>
Date: August 13, 2011 5:36:45 AM PDT
To: Ephi Dror <ephi.dror at<mailto:ephi.dror at>>
Cc: "samba-technical at<mailto:samba-technical at>" <samba-technical at<mailto:samba-technical at>>
Subject: Re: Issues with upcase table and lowcase table From codepages
On Wed, 2011-08-10 at 17:23 -0700, Ephi Dror wrote:


We are using upcase.dat & lowcase.dat from SAMBA codepages. I think there is a bug in both tables as shown below:

Can you please confirm if this a bug or not?

Is your concern that it is different to the Unicode spec, or it's
different to windows?

My understanding is that we extracted this table using the smbtorture3
CASETABLE test against Windows, but windows may of course have modified
it's table in the meantime (but that would be pretty dangerous...).

If you can get me some more details that would help very much.


Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list