Source for winucase.c

Andrew Bartlett abartlet at
Fri Oct 18 13:44:59 MDT 2013

On Fri, 2013-10-18 at 06:43 -0400, Jeff Layton wrote:
> On Fri, 18 Oct 2013 02:04:29 +0100
> Ben Hutchings <ben at> wrote:
> > fs/cifs/winucase.c is commented as:
> > 
> >  * The const tables in this file were converted from the following info
> >  * provided by Microsoft:
> >  *
> >  * Mapping UTF-16 Strings to Upper Case:
> >  *
> >  *
> >  *
> >  *
> >  * In particular, the table in "Windows 8 Upper Case Mapping Table.txt" was
> >  * post-processed using the script.
> > 
> > Isn't "Windows 8 Upper Case Mapping Table.txt" then the preferred form
> > for modification of the tables?  In which case, it should be included in
> > the kernel sources.
> > 
> > Also, shouldn't this file acknowledge Microsoft's copyright, if it's a
> > derivative work of their file?
> > 
> > Ben.
> > 
> (cc'ing samba-technical and Bradley Kuhn in the hopes that he can help
> clarify)
> Good questions. I'm not certain on either point. When I queried the MS
> folks about the licensing on that file, they said:
> "I discovered the content you used is in fact referenced by the
>  MS-UCODEREF document, in section   Windows Sorting Weight
>  Table. I discussed with the appropriate folks here, and for use in
>  Samba it's certainly covered under Samba's existing PFIF license."
> Bradley, any thoughts as to Ben's questions?

The worked 'referenced' is the key point, because these are the terms on
the WSPP docs on their website:

Copyrights. This documentation is covered by Microsoft copyrights.
Regardless of any other terms that are contained in the terms of use for
the Microsoft website that hosts this documentation, you may make copies
of it in order to develop implementations of the technologies described
in the Open Specifications and may distribute portions of it in your
implementations using these technologies or your documentation as
necessary to properly document the implementation. You may also
distribute in your implementation, with or without modification, any
schema, IDL’s, or code samples that are included in the documentation.
This permission also applies to any documents that are referenced in the
Open Specifications. 

The last line is what they are referring to.

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list