diff options
| author | Sam Varshavchik | 2014-01-12 13:26:54 -0500 | 
|---|---|---|
| committer | Sam Varshavchik | 2014-01-12 13:26:54 -0500 | 
| commit | 40ed34ef54ac459116e2a37b63955c75a18a9441 (patch) | |
| tree | b4239ed6454f45853de0be3c5a8266e310f7f0b1 /sqwebmail/newmsg_create.c | |
| parent | a307e734a37763fc25778adffc2cd5c0d0390555 (diff) | |
| download | courier-libs-40ed34ef54ac459116e2a37b63955c75a18a9441.tar.bz2 | |
Reconfigure against the standalone unicode library.
Diffstat (limited to 'sqwebmail/newmsg_create.c')
| -rw-r--r-- | sqwebmail/newmsg_create.c | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/sqwebmail/newmsg_create.c b/sqwebmail/newmsg_create.c index 5053d47..e4e4382 100644 --- a/sqwebmail/newmsg_create.c +++ b/sqwebmail/newmsg_create.c @@ -28,7 +28,7 @@  #include	"gpglib/gpglib.h"  #include	"http11/http11.h"  #include	"htmllibdir.h" -#include	"unicode/unicode.h" +#include	<unicode.h>  #include	"courierauth.h"  #include	<stdlib.h> @@ -306,8 +306,8 @@ static void do_save_u_line(struct wrap_info *uw,  	char *cbuf;  	size_t csize; -	libmail_u_convert_handle_t h= -		libmail_u_convert_fromu_init(uw->output_chset, +	unicode_convert_handle_t h= +		unicode_convert_fromu_init(uw->output_chset,  					     &cbuf,  					     &csize,  					     0); @@ -317,23 +317,23 @@ static void do_save_u_line(struct wrap_info *uw,  		if (ucsize)  		{  			if (uc[0] == ' ') -				libmail_u_convert_uc(h, uc, 1); +				unicode_convert_uc(h, uc, 1);  			/* Space stuff */ -			libmail_u_convert_uc(h, uc, ucsize); +			unicode_convert_uc(h, uc, ucsize);  		}  		if (flowed)  		{  			unicode_char spc=' '; -			libmail_u_convert_uc(h, &spc, 1); +			unicode_convert_uc(h, &spc, 1);  		}  		{  			unicode_char nl='\n'; -			libmail_u_convert_uc(h, &nl, 1); +			unicode_convert_uc(h, &nl, 1);  		} -		if (libmail_u_convert_deinit(h, NULL)) +		if (unicode_convert_deinit(h, NULL))  			cbuf=NULL;  	}  	else @@ -437,21 +437,21 @@ void wrap_text(struct wrap_info *uw,  	{  		unicode_char *uc;  		size_t ucsize; -		libmail_u_convert_handle_t h; +		unicode_convert_handle_t h;  		j=i;  		while (i<newmsg_size && newmsg[i] != '\n')  			++i; -		h=libmail_u_convert_tou_init(sqwebmail_content_charset, +		h=unicode_convert_tou_init(sqwebmail_content_charset,  					     &uc, &ucsize, 0);  		if (h)  		{ -			libmail_u_convert(h, newmsg+j, i-j); +			unicode_convert(h, newmsg+j, i-j); -			if (libmail_u_convert_deinit(h, NULL)) +			if (unicode_convert_deinit(h, NULL))  				uc=NULL;  		}  		else | 
