Borrowing a Function -- Licensing?

Hello,

So, I borrowed a function from SDL_ttf in my own project
(UTF8_to_UNICODE) to help me handling strings and drawing text, etc…
and I now (or will eventually) need to know how I accredit this
function to the proper owner so that I’m not violating any licensing
issues. I would appreciate any input that someone might have on the
matter.

Does anyone know the proper/right thing to do in this case?

– Scott

SDL_ttf is under LGPL 2.1, see the “copying”-file in the SDL_ttf-archive.
All the rules and regulations are stated in that file and I think you might find the answer in there.

Scott Harper wrote:> Hello,

So, I borrowed a function from SDL_ttf in my own project
(UTF8_to_UNICODE) to help me handling strings and drawing text, etc…
and I now (or will eventually) need to know how I accredit this function
to the proper owner so that I’m not violating any licensing issues. I
would appreciate any input that someone might have on the matter.

Does anyone know the proper/right thing to do in this case?

– Scott


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

andreas wrote:

SDL_ttf is under LGPL 2.1, see the “copying”-file in the SDL_ttf-archive.
All the rules and regulations are stated in that file and I think you might find the answer in there.

LGPL can’t usually be borrowed from, if your code isn’t GPL/LGPL itself.

Here’s my Unicode code, under the zlib license (basically: do whatever
you want with it)…

http://hg.icculus.org/icculus/physfs/raw-file/tip/physfs_unicode.c

The license, all three clauses, is here…

http://hg.icculus.org/icculus/physfs/raw-file/tip/LICENSE.txt

You probably want PHYSFS_utf8ToUcs4() and utf8codepoint(), cut and paste
into your project, and fill in some typedefs for PHYSFS_uint32, etc.

The rest of the stuff is useful (case-insensitive Unicode string
compare, etc), but can probably be deleted if you don’t care about it.

–ryan.

If you’re using C++, here’s a small nice UTF-8 library I’ve recently
come across: http://utfcpp.sourceforge.net (under the Boost Software
License - MIT/BSD and Zlib-alike, see
http://www.boost.org/users/license.html#History).

Cheers,
Alex