mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
107020793c
This adds a direct conversion hook using libicu to perform NFC <-> NFD conversion on UTF8 strings. The defined charset strings are "UTF8-NFC" and "UTF8-NFD", to convert from one to the other the caller calls smb_iconv_open() with the desired source and target charsets, eg smb_iconv_open("UTF8-NFD", "UTF8-NFC"); for converting from NFC to NFD. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
12 lines
492 B
Python
12 lines
492 B
Python
#!/usr/bin/env python
|
|
|
|
bld.SAMBA_SUBSYSTEM('ICONV_WRAPPER',
|
|
source='iconv.c',
|
|
public_deps='iconv replace talloc ' + bld.env['icu-libs'])
|
|
|
|
bld.SAMBA_SUBSYSTEM('charset',
|
|
public_headers='charset.h',
|
|
source='codepoints.c convert_string.c util_str.c util_unistr_w.c pull_push.c util_unistr.c weird.c charset_macosxfs.c',
|
|
deps='DYNCONFIG ICONV_WRAPPER',
|
|
public_deps='talloc')
|