utf8proc
diff ruby/utf8proc_native.c @ 1:61a89ecc2fb9
Version 0.2
- changed behaviour of PostgreSQL function to return NULL in case of invalid input, rather than raising an exceptional condition
- improved efficiency of PostgreSQL function (no transformation to C string is done)
- added -fpic compiler flag in Makefile
- fixed bug in the C code for the ruby library (usage of non-existent function)
- changed behaviour of PostgreSQL function to return NULL in case of invalid input, rather than raising an exceptional condition
- improved efficiency of PostgreSQL function (no transformation to C string is done)
- added -fpic compiler flag in Makefile
- fixed bug in the C code for the ruby library (usage of non-existent function)
author | jbe |
---|---|
date | Tue Jun 20 12:00:00 2006 +0200 (2006-06-20) |
parents | a0368662434c |
children | aaad485d5335 |
line diff
1.1 --- a/ruby/utf8proc_native.c Fri Jun 02 12:00:00 2006 +0200 1.2 +++ b/ruby/utf8proc_native.c Tue Jun 20 12:00:00 2006 +0200 1.3 @@ -33,8 +33,8 @@ 1.4 1.5 /* 1.6 * File name: ruby/utf8proc_native.c 1.7 - * Version: 0.1 1.8 - * Last changed: 2006-05-31 1.9 + * Version: 0.2 1.10 + * Last changed: 2006-06-20 1.11 * 1.12 * Description: 1.13 * Native part of the ruby wrapper for libutf8proc. 1.14 @@ -97,13 +97,13 @@ 1.15 if (result < 0) { 1.16 free(env->buffer); 1.17 env->buffer = 0; 1.18 - func_map_error(result); 1.19 + utf8proc_ruby_map_error(result); 1.20 } 1.21 result = utf8proc_reencode(env->buffer, result, options); 1.22 if (result < 0) { 1.23 free(env->buffer); 1.24 env->buffer = 0; 1.25 - func_map_error(result); 1.26 + utf8proc_ruby_map_error(result); 1.27 } 1.28 retval = rb_str_new((char *)env->buffer, result); 1.29 free(env->buffer);