summaryrefslogtreecommitdiff
path: root/lib/util/charset/charcnv.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-23charcnv: remove the automatic fail on allow_badcharcnv trueAndrew Tridgell1-5/+0
we should just fail the call if the string really is bad
2011-02-18lib/util/charcnv Move iconv handle setup in commonAndrew Bartlett1-289/+0
We now use the struct smb_iconv_convenience at the core of all our iconv code, and use global_iconv_convenience for the callers that don't specify one. Andrew Bartlett
2011-02-04charcnv: removed call to setlocale() (bug 7519)Andrew Tridgell1-10/+0
We don't need this setlocale() call, and it can break applications that use our libraries Thanks to Milan Crha for pointing this out Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Feb 4 06:51:01 CET 2011 on sn-devel-104
2010-11-03lib/util/charset/charconv: clarify comments in next_codepoint_convenience_ext()Michael Adam1-5/+8
Give the unicod U+<hexnumber> notation of the codepoints referred to in the comments. Also reformat the comments some.
2010-11-03lib/charset/charcnv: rename a parameter of next_codepoint_convenience_ext() ↵Michael Adam1-5/+5
for clarity
2010-11-03lib/charset/charcnv: add next_codepoint_convenience_ext() that accepts input ↵Michael Adam1-11/+34
charset. next_codepoint_convenience() takes as string in CH_UNIX encoding and returns the unicode codepoint of the next (possibly multibyte) character of the input string. The new next_codepoint_convenience_ext() function adds the encoding of the input string as a parameter. next_codepoint_convenience() now only calls next_codepoint_convenience_ext() with CH_UNIX als src_charset argument.
2010-03-22convert_string_talloc_convenience - print out the input buffer in a better ↵Matthias Dieter Wallnöfer1-1/+2
way (using dump_data since it isn't always directly readable)
2010-03-18charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell1-8/+32
We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values.
2009-04-23Add a new non-convenience version of push_codepoint.Jelmer Vernooij1-1/+3
2009-03-08Revert accidental reintroduction of void ** bug.Jelmer Vernooij1-2/+4
2009-03-01s4: Use same function signature for convert_* as s3.Jelmer Vernooij1-15/+27
2009-03-01Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij1-2/+9
consistency with Samba 3.
2008-11-01Remove convert_string_talloc_descriptor, add iconv_talloc().Jelmer Vernooij1-58/+72
2008-10-31finished adding UTF16_MUNGED charsetAndrew Tridgell1-0/+1
Changed the approach for the charset to go via utf16, which makes a bit more sense to read. Added a testsuiite for UTF16_MUNGED as part of LOCAL-ICONV
2008-10-24Add version of next_codepoint without iconv_convenience.Jelmer Vernooij1-1/+1
2008-10-24Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij1-2/+2
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij1-323/+0
functions.
2008-10-24Remove unnecessary include, improve function name.Jelmer Vernooij1-3/+2
2008-10-24Move charset library to top level.Jelmer Vernooij1-0/+768