[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5478) Can not compile ldap_t61s_to_utf8s function from LDAP library



emmanuel.duru@atosorigin.com wrote:
> Full_Name: Emmanuel Duru
> Version: 2.3.38
> OS: Windows
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (195.68.44.148)
>
>
> Using OpenLDAP LDAP library to perform conversions between X.500 directory data
> and LDAP directory data, I need to convert values from T.61 to UTF-8.
> I see that there is a t61.c file in LDAP library with a ldap_t61s_to_utf8s()
> function to perform this.
> The problem is that t61.c does not compile because it refers to
> ldap_x_wc_to_utf8() and ldap_x_utf8_to_wc() which are defined in utf-8-conv.c
> file only in case sizeof(wchar_t)>= 4, which is not the case with windows where
> sizeof(wchar_t) = 2.

Just patch utf-8-conv.c to allow those routines to be compiled. The T.61 
variant supported in t61.c will never generate character codes greater than 
0x2126 anyway, so it will always fit in a 2-byte character.

Note that all of that T.61 support is heavily deprecated. t61.c is present in 
the source distribution mainly for historical reference; it has never been 
included in any distributed Makefiles or public builds. As such, you're on 
your own here. This ITS will be closed.
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/