# HG changeset patch # User jbe # Date 1167130800 -3600 # Node ID c18366878af908e27118ffb4b6be5c33a4855f09 # Parent a49e32490aac12a182ee05aef771bad9d0e881d0 Version 1.0.2 - included a check in Integer#utf8, which raises an exception, if the given code-point is invalid because of being too high (this was missing yet) - added support for PostgreSQL version 8.2 diff -r a49e32490aac -r c18366878af9 Changelog --- a/Changelog Wed Sep 20 12:00:00 2006 +0200 +++ b/Changelog Tue Dec 26 12:00:00 2006 +0100 @@ -40,3 +40,16 @@ Release of version 1.0 +2006-09-20: +- included a gem file for the ruby version of the library + +Release of version 1.0.1 + +2006-09-21: +- included a check in Integer#utf8, which raises an exception, if the given + code-point is invalid because of being too high (this was missing yet) + +2006-12-26: +- added support for PostgreSQL version 8.2 + +Release of version 1.0.2 diff -r a49e32490aac -r c18366878af9 pgsql/utf8proc_pgsql.c --- a/pgsql/utf8proc_pgsql.c Wed Sep 20 12:00:00 2006 +0200 +++ b/pgsql/utf8proc_pgsql.c Tue Dec 26 12:00:00 2006 +0100 @@ -51,6 +51,10 @@ #include #include +#ifdef PG_MODULE_MAGIC +PG_MODULE_MAGIC; +#endif + #define UTF8PROC_PGSQL_OPTS ( UTF8PROC_REJECTNA | UTF8PROC_COMPAT | \ UTF8PROC_COMPOSE | UTF8PROC_STABLE | UTF8PROC_IGNORE | UTF8PROC_STRIPCC | \ UTF8PROC_NLF2LF | UTF8PROC_CASEFOLD | UTF8PROC_LUMP ) diff -r a49e32490aac -r c18366878af9 ruby/utf8proc_native.c --- a/ruby/utf8proc_native.c Wed Sep 20 12:00:00 2006 +0200 +++ b/ruby/utf8proc_native.c Tue Dec 26 12:00:00 2006 +0100 @@ -122,7 +122,8 @@ ssize_t result; int uc; uc = NUM2INT(code_param); - if (uc < 0 || ((uc & 0xFFFF) >= 0xFFFE) || (uc >= 0xD800 && uc < 0xE000) || + if (uc < 0 || uc >= 0x110000 || + ((uc & 0xFFFF) >= 0xFFFE) || (uc >= 0xD800 && uc < 0xE000) || (uc >= 0xFDD0 && uc < 0xFDF0)) rb_raise(rb_eArgError, "Invalid Unicode code point"); result = utf8proc_encode_char(uc, buffer); diff -r a49e32490aac -r c18366878af9 utf8proc-1.0.1.gem Binary file utf8proc-1.0.1.gem has changed diff -r a49e32490aac -r c18366878af9 utf8proc-1.0.2.gem Binary file utf8proc-1.0.2.gem has changed