summaryrefslogtreecommitdiffstats
path: root/lib/util/charset
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/util/charset/util_unistr: add strlen_m_ext_term() - variant of ↵Michael Adam2010-11-032-0/+12
| | | | strlen_m_ext() counting terminator
* lib/util/charset/util_unistr: add strlen_m_ext that takes input and output ↵Michael Adam2010-11-032-10/+51
| | | | | | | | | charset The function calculates the number of units (8 or 16-bit, depending on the destination charset), that would be needed to convert the input string which is expected to be in in src_charset encoding to the dst_charset (which should be a unicode charset).
* lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.Michael Adam2010-11-032-0/+8
| | | | | | | | | | next_codepoint() 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_ext() function adds the encoding of the input string as a parameter. next_codepoint() now only calls next_codepoint_ext() with CH_UNIX als src_charset argument.
* lib/charset/charcnv: rename a parameter of next_codepoint_convenience_ext() ↵Michael Adam2010-11-031-5/+5
| | | | for clarity
* lib/charset/charcnv: add next_codepoint_convenience_ext() that accepts input ↵Michael Adam2010-11-032-11/+37
| | | | | | | | | | | | 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.
* util/charset: remove a duplicate comment.Michael Adam2010-11-031-5/+0
| | | | This seems to have been copied twice from source3/ code.
* build: check that if we provide -liconv we can build shared libsMatthieu Patou2010-10-311-0/+6
| | | | | | | | | On Solaris with sun studio compiling an executable with -liconv even if there is no libiconv.so or libiconv.a will work but not for a shared lib. This problem leads to build problem as the linker won't be able to find libiconv when building shared lib as liconv is wrongly specified
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-312-97/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4:lib/util/charset/iconv.c - remove a distinction which can never happenMatthias Dieter Wallnöfer2010-10-211-4/+1
| | | | | "ret->cd_direct" is never set before. It is set in the "if" upperwards but then the function is terminated with "return".
* s3: Fix the charset_pull routine (bug 7531)Volker Lendecke2010-09-191-1/+1
| | | | In the push routine we do the SVAL, so we should do the SSVAL here.
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-5/+5
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Move UCS2 macros to common codeJelmer Vernooij2010-06-251-0/+23
|
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-3/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-062-0/+4
| | | | them
* s4-waf: look for libiconv before checking libcAndrew Tridgell2010-04-061-1/+6
| | | | This is needed for solaris8
* s4-waf: remove the need for some of the lib aliasesAndrew Tridgell2010-04-061-1/+1
|
* build: updated configure checks or new syntaxAndrew Tridgell2010-04-061-10/+2
|
* build: check libc first for several librariesAndrew Tridgell2010-04-061-1/+1
|
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+11
|
* build: iconv checksAndrew Tridgell2010-04-061-0/+10
|
* charset: look for the codepages in the right placeAndrew Tridgell2010-03-301-2/+2
| | | | | selftest runs from source3/source4. The codepages when not installed are in ../codepages
* convert_string_talloc_convenience - print out the input buffer in a better ↵Matthias Dieter Wallnöfer2010-03-221-1/+2
| | | | way (using dump_data since it isn't always directly readable)
* charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell2010-03-183-13/+39
| | | | | | | | | | | 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.
* Change uint_t to unsigned int in lib/utilMatt Kraai2010-02-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Return NULL in strlower_talloc if src is NULLBrendan Powers2009-12-181-0/+4
| | | | | | Prevents strlower_talloc from segfaulting if you pass it a NULL string. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* charset/tests/iconv - Remove the "const" from "ptr_in" to prevent ↵Matthias Dieter Wallnöfer2009-11-201-7/+7
| | | | | | "discard_const_p" use Signed-off-by: Stefan Metzmacher <metze@samba.org>
* util: fixed place where we could look one byte past end of stringAndrew Tridgell2009-10-221-1/+1
| | | | We need to check the length before the value
* s4:tests/iconv - Fix a warningMatthias Dieter Wallnöfer2009-09-071-1/+2
|
* s4: Fix "Small memory leak after calling several times lp_update"Inra2009-09-071-37/+17
| | | | Should fix bug #6660.
* Fix make test.Jeremy Allison2009-08-241-0/+1
| | | | Jeremy.
* Fix push_codepoint function without iconv_convenience.Jelmer Vernooij2009-04-231-1/+1
|
* Add a new non-convenience version of push_codepoint.Jelmer Vernooij2009-04-234-7/+15
|
* Fix prototype mismatch.Jelmer Vernooij2009-03-091-1/+1
|
* Revert accidental reintroduction of void ** bug.Jelmer Vernooij2009-03-082-5/+7
|
* Import ISO-8859-1, 646 from Samba 3 iconv.Jelmer Vernooij2009-03-021-0/+29
|
* Use common header file for character set handling in Samba 3 and Samba 4.Jelmer Vernooij2009-03-013-38/+122
|
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-014-46/+77
|
* Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.Jelmer Vernooij2009-03-012-2/+3
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-014-23/+31
| | | | consistency with Samba 3.
* lib: add strlen_m_term_null from s3.Günther Deschner2009-01-162-0/+20
| | | | Guenther
* Remove convert_string_talloc_descriptor, add iconv_talloc().Jelmer Vernooij2008-11-012-59/+77
|
* finished adding UTF16_MUNGED charsetAndrew Tridgell2008-10-314-72/+102
| | | | | | | 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
* added a new charset for string2keyAndrew Tridgell2008-10-311-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
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Remove more global_loadparm instances, fix syntax errors.Jelmer Vernooij2008-10-242-5/+5
|
* Add version of next_codepoint without iconv_convenience.Jelmer Vernooij2008-10-244-15/+23
|
* Remove dependency of charset code on loadparm.Jelmer Vernooij2008-10-242-2/+6
|
* Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2008-10-243-24/+60
| | | | make them wrappers around convert_string{,talloc}_convenience().
* Avoid retrieving iconv convenience during loops.Jelmer Vernooij2008-10-241-11/+15
|
* Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij2008-10-243-340/+345
| | | | functions.