summaryrefslogtreecommitdiff
path: root/lib/util/charset
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18lib/util/charset Use top level iconv.c in source3Andrew Bartlett3-12/+90
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>
2011-02-18charset Remove use of {isupper,islower,toupper,tolower}_w functionsAndrew Bartlett1-0/+2
These now call the common _m functions that consider UTF16 code points. This removes the code which will make up a 'lame' table in memory, as this can just as correctly be handled by running the algorithm at runtime (which is to call toupper() and tolower() on characters < 128). When used, a top level waf build will always locate the correct table - in the build tree or outside - due to relinking the installed binary. Andrew Bartlett
2011-02-18charset: allow s3 waf build to use lib/util/charsetAndrew Tridgell1-5/+6
the only conflict is with 'CHARSET' itself, which now builds conditionally on _SAMBA_BUILD_==4 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18lib/util/charset use get_dyn_CODEPAGEDIR(), which is in commonAndrew Bartlett1-2/+2
This is provided by the s3 and s4 dynconfig implementations. Andrew Bartlett
2011-02-18lib/util/charset split codepoints.c into it's own subsystemAndrew Bartlett1-3/+6
2011-02-18lib/util/charset use a path to dynconfig.h that works in s3 and s4Andrew Bartlett1-1/+1
2011-02-18lib/util/charset add functions isupper_m and islower_mAndrew Bartlett2-0/+19
2011-02-07s4-charset: use dyn_CODEPAGEDIR for location of upcase.dat/lowcase.datAndrew Tridgell1-12/+4
this matches samba3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
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-12-14build: fix bad syntaxMatthieu Patou1-1/+1
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Dec 14 20:55:17 CET 2010 on sn-devel-104
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2-2/+2
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-10build: finishing fixing broken libiconv on hpuxMatthieu Patou1-0/+2
2010-12-08build: Cope with broken libiconvMatthieu Patou1-1/+5
library iconv needs mbrtowc but some system didn't provide it (ie. HP-UX 11.0) Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Dec 8 23:19:19 CET 2010 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/util/charset/util_unistr: clarify the comment header for strlen_m().Michael Adam1-5/+6
2010-11-03lib/util/charset/util_unistr: add strlen_m_ext_term() - variant of ↵Michael Adam2-0/+12
strlen_m_ext() counting terminator
2010-11-03lib/util/charset/util_unistr: add strlen_m_ext that takes input and output ↵Michael Adam2-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).
2010-11-03lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.Michael Adam2-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.
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 Adam2-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.
2010-11-03util/charset: remove a duplicate comment.Michael Adam1-5/+0
This seems to have been copied twice from source3/ code.
2010-10-31build: check that if we provide -liconv we can build shared libsMatthieu Patou1-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
2010-10-31s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2-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
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-09-19s3: Fix the charset_pull routine (bug 7531)Volker Lendecke1-1/+1
In the push routine we do the SVAL, so we should do the SSVAL here.
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-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>
2010-06-25Move UCS2 macros to common codeJelmer Vernooij1-0/+23
2010-04-06s4-waf: removed the AUTOGENERATED markersAndrew Tridgell1-3/+0
we won't be using the mk -> wscript generator again
2010-04-06s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2-0/+4
them
2010-04-06s4-waf: look for libiconv before checking libcAndrew Tridgell1-1/+6
This is needed for solaris8
2010-04-06s4-waf: remove the need for some of the lib aliasesAndrew Tridgell1-1/+1
2010-04-06build: updated configure checks or new syntaxAndrew Tridgell1-10/+2
2010-04-06build: check libc first for several librariesAndrew Tridgell1-1/+1
2010-04-06build: commit all the waf build files in the treeAndrew Tridgell1-0/+11
2010-04-06build: iconv checksAndrew Tridgell1-0/+10
2010-03-30charset: look for the codepages in the right placeAndrew Tridgell1-2/+2
selftest runs from source3/source4. The codepages when not installed are in ../codepages
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 Tridgell3-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.
2010-02-02Change uint_t to unsigned int in lib/utilMatt Kraai1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-18Return NULL in strlower_talloc if src is NULLBrendan Powers1-0/+4
Prevents strlower_talloc from segfaulting if you pass it a NULL string. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-20charset/tests/iconv - Remove the "const" from "ptr_in" to prevent ↵Matthias Dieter Wallnöfer1-7/+7
"discard_const_p" use Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-22util: fixed place where we could look one byte past end of stringAndrew Tridgell1-1/+1
We need to check the length before the value
2009-09-07s4:tests/iconv - Fix a warningMatthias Dieter Wallnöfer1-1/+2
2009-09-07s4: Fix "Small memory leak after calling several times lp_update"Inra1-37/+17
Should fix bug #6660.
2009-08-24Fix make test.Jeremy Allison1-0/+1
Jeremy.
2009-04-23Fix push_codepoint function without iconv_convenience.Jelmer Vernooij1-1/+1
2009-04-23Add a new non-convenience version of push_codepoint.Jelmer Vernooij4-7/+15
2009-03-09Fix prototype mismatch.Jelmer Vernooij1-1/+1
2009-03-08Revert accidental reintroduction of void ** bug.Jelmer Vernooij2-5/+7
2009-03-02Import ISO-8859-1, 646 from Samba 3 iconv.Jelmer Vernooij1-0/+29