1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
afbff33eba Move 'weird' character set into new 'developer' module 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
5191719eee Don't throw out WEIRD - yet (I committed my local changes together with my last fix. D'oh!) 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
a20676bc05 Fix segfault with high debug levels 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
8b65465875 Add smb_register_charset() and use it 0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0cfd0a5e54 much better auto-init of valid_table[]. This should just about remove
the need for valid.dat
0001-01-01 00:00:00 +00:00
Herb Lewis
51cb4411df get rid of compiler warnings (casts and delete unused variables) 0001-01-01 00:00:00 +00:00
Andrew Bartlett
b648cc669d Add a few const statements to various odd bits of the tree. (Fixes some
warnings)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e13e8b190c allow all ucs2 chars in utf8, rather than mapping some to a single
char like libiconv does
0001-01-01 00:00:00 +00:00
Simo Sorce
60e907b7e8 move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
266d8e6766 added "display charset" option in smb.conf, along with d_printf()
which should now be used instead of DEBUG(0) or printf() for
interactive messages

I have only converted client.c to use d_printf(), and the code hasn't
had much testing yet. Eventually we want all interactive code to use
d_printf(), plus SWAT
0001-01-01 00:00:00 +00:00
Andrew Tridgell
594f84b4e3 changed the iconv interface to go via ucs2 for all conversions. This
fixes some problems wih some character sets and allows for using
internal charsets in conjunction with ionv charsets
this makes us slower but more correct. speed will come later.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e236a3e29e switch from UCS2 to UCS-2LE 0001-01-01 00:00:00 +00:00
Andrew Tridgell
95a9a1814f fixed a silly bug in the internal UTF8 implementation 0001-01-01 00:00:00 +00:00
Andrew Tridgell
25c4b3f193 added some comments and removed an unnecessary check 0001-01-01 00:00:00 +00:00
Andrew Tridgell
0c61e54f15 optimised the 7 bit case for utf8 conversion 0001-01-01 00:00:00 +00:00
Andrew Tridgell
42648a7aad make sure we reset the shift state on error for charsets like SJIS 0001-01-01 00:00:00 +00:00
Andrew Tridgell
76d83e7f70 added builtin support for UTF8 0001-01-01 00:00:00 +00:00
Andrew Tridgell
bf81826851 more portability fixes 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7a5c24c219 portability fixes 0001-01-01 00:00:00 +00:00
Andrew Tridgell
815ca75274 got rid of __FUNCTION__ debug 0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267 The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
0001-01-01 00:00:00 +00:00