rlm_sql and UTF8 encoded strings

Stephan Jaeger stephan.jaeger at ewetel.de
Mon May 11 14:03:52 CEST 2009


Alan DeKok wrote:
> Stephan Jaeger wrote:
>   
>   Then in sql_escape_func(), check for utf8, and use the utf8_char
> function to skip ahead, instead of doing "str++"
>
>   
Here's my solution, maybe there's a smarter one which does not require 
cloning sql_escape_func.

I splitted this in several patches for clarity.


Regards

Stephan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libradius.h.diff
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20090511/e51b5a6a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print.c.diff
Type: text/x-patch
Size: 454 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20090511/e51b5a6a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlm_sql.diff
Type: text/x-patch
Size: 2420 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20090511/e51b5a6a/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sql_log.conf.diff
Type: text/x-patch
Size: 421 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20090511/e51b5a6a/attachment-0003.bin>


More information about the Freeradius-Devel mailing list