utf8proc

diff pgsql/utf8proc_pgsql.c @ 9:951e73a98021

Version 1.1.3

- Added a function utf8proc_version returning a string containing the version number of the library.
- Included a target libutf8proc.dylib for MacOSX.
- PostgreSQL 8.3 compatibility (use of SET_VARSIZE macro)
author jbe
date Fri May 01 12:00:00 2009 +0200 (2009-05-01)
parents fcfd8c836c64
children 00d2bcbdc945
line diff
     1.1 --- a/pgsql/utf8proc_pgsql.c	Wed Jul 25 12:00:00 2007 +0200
     1.2 +++ b/pgsql/utf8proc_pgsql.c	Fri May 01 12:00:00 2009 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - *  Copyright (c) 2006-2007 Jan Behrens, FlexiGuided GmbH, Berlin
     1.6 + *  Copyright (c) 2006-2009 Jan Behrens, FlexiGuided GmbH, Berlin
     1.7   *
     1.8   *  Permission is hereby granted, free of charge, to any person obtaining a
     1.9   *  copy of this software and associated documentation files (the "Software"),
    1.10 @@ -23,8 +23,8 @@
    1.11  
    1.12  /*
    1.13   *  File name:    pgsql/utf8proc_pgsql.c
    1.14 - *  Version:      1.1.1
    1.15 - *  Last changed: 2007-07-22
    1.16 + *  Version:      1.1.3
    1.17 + *  Last changed: 2009-05-01
    1.18   *
    1.19   *  Description:
    1.20   *  PostgreSQL extension to provide two functions 'unifold' and 'unistrip',
    1.21 @@ -77,7 +77,7 @@
    1.22    result = utf8proc_reencode(
    1.23      (int32_t *)VARDATA(output_string), result, options
    1.24    );
    1.25 -  if (result >= 0) VARATT_SIZEP(output_string) = result + VARHDRSZ;
    1.26 +  if (result >= 0) SET_VARSIZE(output_string, result + VARHDRSZ);
    1.27    return result;
    1.28  }
    1.29  

Impressum / About Us