Matthieu Patou
9f0fb0261e
build: check that if we provide -liconv we can build shared libs
...
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-31 18:51:54 +03:00
Jelmer Vernooij
3deece5591
s4: Remove the old perl/m4/make/mk-based build system.
...
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-31 02:01:44 +00:00
Matthias Dieter Wallnöfer
4a33071e83
s4:lib/util/charset/iconv.c - remove a distinction which can never happen
...
"ret->cd_direct" is never set before. It is set in the "if" upperwards but
then the function is terminated with "return".
2010-10-21 08:28:50 +02:00
Volker Lendecke
1c8fd86a1d
s3: Fix the charset_pull routine (bug 7531)
...
In the push routine we do the SVAL, so we should do the SSVAL here.
2010-09-19 21:33:25 -07:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
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-07-16 18:24:27 +10:00
Jelmer Vernooij
e40afe975a
Move UCS2 macros to common code
2010-06-25 22:48:59 +02:00
Andrew Tridgell
b690fedef5
s4-waf: removed the AUTOGENERATED markers
...
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
63f20e696e
s4-waf: look for libiconv before checking libc
...
This is needed for solaris8
2010-04-06 20:27:08 +10:00
Andrew Tridgell
026690af00
s4-waf: remove the need for some of the lib aliases
2010-04-06 20:27:05 +10:00
Andrew Tridgell
00649a9c62
build: updated configure checks or new syntax
2010-04-06 20:27:00 +10:00
Andrew Tridgell
81d155af96
build: check libc first for several libraries
2010-04-06 20:26:56 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Andrew Tridgell
2ea4fd6633
build: iconv checks
2010-04-06 20:26:45 +10:00
Andrew Tridgell
0f113faea8
charset: look for the codepages in the right place
...
selftest runs from source3/source4. The codepages when not installed
are in ../codepages
2010-03-30 12:31:03 +11:00
Matthias Dieter Wallnöfer
31b4585489
convert_string_talloc_convenience - print out the input buffer in a better way (using dump_data since it isn't always directly readable)
2010-03-22 23:21:17 +01:00
Andrew Tridgell
55c45110e6
charset: fixed a problem with the global use of the iconv_convenience structure
...
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-03-18 14:18:41 +11:00
Matt Kraai
a7250eb142
Change uint_t to unsigned int in lib/util
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:17 +01:00
Brendan Powers
027cba6a49
Return NULL in strlower_talloc if src is NULL
...
Prevents strlower_talloc from segfaulting if you pass it a NULL string.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-18 14:27:43 +11:00
Matthias Dieter Wallnöfer
c1cb1f7724
charset/tests/iconv - Remove the "const" from "ptr_in" to prevent "discard_const_p" use
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-20 16:50:49 +01:00
Andrew Tridgell
dfa0b74516
util: fixed place where we could look one byte past end of string
...
We need to check the length before the value
2009-10-22 12:47:54 +11:00
Matthias Dieter Wallnöfer
56a0f995b8
s4:tests/iconv - Fix a warning
2009-09-07 12:38:44 +02:00
Inra
7ce01743c1
s4: Fix "Small memory leak after calling several times lp_update"
...
Should fix bug #6660 .
2009-09-07 09:40:34 +02:00
Jeremy Allison
e829ca560d
Fix make test.
...
Jeremy.
2009-08-24 11:24:10 -07:00
Jelmer Vernooij
3cf48ee05a
Fix push_codepoint function without iconv_convenience.
2009-04-23 17:50:18 +02:00
Jelmer Vernooij
80420745ff
Add a new non-convenience version of push_codepoint.
2009-04-23 17:50:18 +02:00
Jelmer Vernooij
218ce0e805
Fix prototype mismatch.
2009-03-09 21:49:44 +01:00
Jelmer Vernooij
f992416e23
Revert accidental reintroduction of void ** bug.
2009-03-08 06:57:52 +01:00
Jelmer Vernooij
c7b9757b8a
Import ISO-8859-1, 646 from Samba 3 iconv.
2009-03-02 04:12:57 +01:00
Jelmer Vernooij
7ab8f373c8
Use common header file for character set handling in Samba 3 and Samba 4.
2009-03-01 22:24:34 +01:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9f6e2d6485
Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.
2009-03-01 12:59:58 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Günther Deschner
87fec1450f
lib: add strlen_m_term_null from s3.
...
Guenther
2009-01-16 00:28:45 +01:00
Jelmer Vernooij
fa7bb8ac53
Remove convert_string_talloc_descriptor, add iconv_talloc().
2008-11-01 20:56:27 +01:00
Andrew Tridgell
55d55d9d9b
finished adding UTF16_MUNGED charset
...
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-31 15:41:34 +11:00
Andrew Tridgell
391264a100
added a new charset for string2key
...
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-31 13:51:37 +11:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
f7692d16e3
Remove more global_loadparm instances, fix syntax errors.
2008-10-24 16:12:14 +02:00
Jelmer Vernooij
c3415b3e57
Add version of next_codepoint without iconv_convenience.
2008-10-24 16:00:43 +02:00
Jelmer Vernooij
61013deff8
Remove dependency of charset code on loadparm.
2008-10-24 14:45:31 +02:00
Jelmer Vernooij
37d885c51a
Remove iconv_convenience argument from convert_string{,talloc}() but
...
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
5d146d0178
Avoid retrieving iconv convenience during loops.
2008-10-24 04:39:09 +02:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Jelmer Vernooij
7ec58471df
Split up codepoints code, use consistent _m suffix.
2008-10-24 02:51:03 +02:00
Jelmer Vernooij
5e4767b532
Rename string_replace_w to string_replace_m, which is more correct.
2008-10-24 01:19:33 +02:00
Jelmer Vernooij
420781bf46
Remove unnecessary include, improve function name.
2008-10-24 01:18:56 +02:00
Jelmer Vernooij
09a63accb8
Move charset library to top level.
2008-10-24 00:06:35 +02:00