db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernt Marius Johnsen <bernt.john...@oracle.com>
Subject Re: German Sharp S and UCASE
Date Fri, 09 Dec 2011 08:43:02 GMT
Generally, in Unicode, it can't be assumed that
length(string) == length(uppercase(string))
  or that
length(string) == length(lowercase(string))

So it's not a German-specific feature, and there is obviously a bug in 
Derby based on that wrong assumption.

Furthermore in the same vein, it can't be assumed that

uppercase(lowercase(uppercasestring)) == uppercasestring
  nor that
lowercase(uppercase(lowercasestring)) == lowercasestring

(e.g. lowercase(uppercase('stra├če')) gives 'strasse')


View raw message