summaryrefslogtreecommitdiff
path: root/lib/util/charset/iconv.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-20lib/util/charset: remove charset module loadingAndrew Bartlett1-95/+20
Now that the 'table' modules are gone, there is no reason for there to be charset modules at all. This builds the macosxfs and weird modules into the binary at the appropriate times, and changes the tests to test instead the difference between the remaining internal handlers and iconv(). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 20 06:27:06 CEST 2011 on sn-devel-104
2011-09-10lib/util/charset: add back loading of charset modulesAndrew Bartlett1-26/+52
For autoconf builds these remain as modules, for waf builds they are built into the charset library. This is required to provide the CP850 charset when iconv is not available. The charset modules static for the waf builds because with proper shared libs, there isn't the same need for these to be in seperate .so files. The modules are also not produced if a system iconv is found, except for developers, to allow testing of both code paths. Andrew Bartlett
2011-09-01Fix bug 8433, segfault in iconv.cVolker Lendecke1-1/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Sep 1 18:25:34 CEST 2011 on sn-devel-104
2011-04-13lib/util/charset Make ASCII conversion validate it's inputAndrew Bartlett1-4/+69
We should not just strip the high bits off unicode strings being converted to ASCII, we need to actually fail the conversion. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13lib/util/charset Preserve 'pull' errors even when converting via UTF16Andrew Bartlett1-3/+8
When we do not have a direct iconv handle between any two charsets, we must go iva UTF16. However, we should still return the same buffer and error code as if we were able to go direct - including the partial conversion and the error code. This is important for locating the invalid multibyte character in the stream, for example. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-03-31charconv: Use talloc_tos() in the S3 buildVolker Lendecke1-1/+9
In S3 we put a talloc_pool on top of the stack so that an allocation from talloc_tos() normally is just a pointer increment. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 31 09:14:01 CEST 2011 on sn-devel-104
2011-03-31Arg. I hate the "if (xxx) return foo" all on one line style of code.Jeremy Allison1-2/+8
Fix the talloc leaks I introduced by not spotting these returns. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 31 05:19:34 CEST 2011 on sn-devel-104
2011-03-31Don't burn 2k of stack on every iconv, use the heap when it's a slow call.Jeremy Allison1-16/+25
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 31 04:09:09 CEST 2011 on sn-devel-104
2011-03-19lib/: Fix prototypes for functions.Jelmer Vernooij1-2/+2
2011-02-18lib/util/charset Use top level iconv.c in source3Andrew Bartlett1-7/+78
The two files were very similar already, the only change required was to adopt the s3 module registration fucntion name. (NTSTATUS wasn't used as the charset code does not otherwise use that type). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-21s4:lib/util/charset/iconv.c - remove a distinction which can never happenMatthias Dieter Wallnöfer1-4/+1
"ret->cd_direct" is never set before. It is set in the "if" upperwards but then the function is terminated with "return".
2010-02-02Change uint_t to unsigned int in lib/utilMatt Kraai1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-09-07s4: Fix "Small memory leak after calling several times lp_update"Inra1-37/+17
Should fix bug #6660.
2009-03-02Import ISO-8859-1, 646 from Samba 3 iconv.Jelmer Vernooij1-0/+29
2009-03-01Use common header file for character set handling in Samba 3 and Samba 4.Jelmer Vernooij1-0/+1
2008-10-31finished adding UTF16_MUNGED charsetAndrew Tridgell1-70/+41
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-31added a new charset for string2keyAndrew Tridgell1-0/+132
This charset follows the rules for converting random buffers to utf8 strings, matching the way windows does it. This should allow us to be compatible for the generation of AES keys
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-24Move charset library to top level.Jelmer Vernooij1-0/+711