summaryrefslogtreecommitdiff
path: root/source3/lib/charcnv.c
AgeCommit message (Collapse)AuthorFilesLines
2002-07-12The changes in make_sec_desc to make us match W2K broke the ↵Jeremy Allison1-1/+1
marshalling/unmarshalling of security descriptors. We need to calculate the maximum offset and set the offset back after reading/writing every field in the SEC_DESC. This was *nasty* to find.... Jeremy. (This used to be commit 175d43980e57c25582d8ab859f5730283e82f3b2)
2002-04-17make suure we get the return value from the pull_*() functions rightAndrew Tridgell1-6/+12
for both null terminated and buffer length terminated strings (This used to be commit e8fbf853e0eed61bb7405be731f18fb2426f8dc4)
2002-04-16stricter conditions on termination in stringsAndrew Tridgell1-6/+6
this was a very nasty bug with filename corruption and NT4 clients. The exact termination conditions are quite critical ... (This used to be commit a538efe7d00e7a61df194ca1c22e0583dcbb7a4a)
2002-04-16fixed the handling of STR_TERMINATEAndrew Tridgell1-3/+21
(This used to be commit dbc6b137a83cf9fe0558625dd32f92f15296fba6)
2002-04-16i forgot to commit these parts of the string handling patch earlier. Sorry.Andrew Tridgell1-5/+5
(This used to be commit bac0093a9713416b1679d1bc167b70f02b06ef78)
2002-03-25add {push,pull}_ucs2{allocate,talloc}() functions.Andrew Bartlett1-0/+58
Andrew Bartlett (This used to be commit ce7990b4a4f251536dd26be5a62c12711df57787)
2002-03-23Patch from Hasch@t-online.de (Juergen Hasch) to add allocate and tallocAndrew Bartlett1-1/+86
push/pull utf8 functions. To be used for international ADS support. Andrew Bartlett (This used to be commit 9ab144810efeb0b086257143b01ca47ee5718861)
2002-03-01Fix up the pull_utf8_fstring/pstring functions, and add their push eqivilants.Andrew Bartlett1-4/+14
patch by Hasch@t-online.de (Juergen Hasch) Andrew Bartlett (This used to be commit ba2570f518e07c95b952fb824a2d0b040b912bcc)
2002-03-01This should kill off the 'cannot convert' error messages on non-iconv hosts.Andrew Bartlett1-1/+1
(This used to be commit 2a30960276ae65b60d01caf9464808d75a812e40)
2002-02-19Patch from Hasch@t-online.de (Juergen Hasch) to add UTF-8 as an explictAndrew Bartlett1-1/+67
character set for conversion. To be used in Winbind and the 'net ads' commands. Andrew Bartlett (This used to be commit fa9d3060ff7510e176d7608b49075379500f55c4)
2002-02-04better debug messages!Simo Sorce1-0/+1
(This used to be commit e3bb6867454307ae592115e205d32ddd53988678)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-22We have to do some initialization before the string conversionMartin Pool1-13/+15
routines can work. The code was copied into both convert_string and convert_string_allocate -- I split it into a little static function, and removed an apparently duplicate call to init_valid_table(). (This used to be commit 7f7d22880d40c7344bc402203dd150255fc694cf)
2001-12-31more irix -64 portability fixesAndrew Tridgell1-1/+0
(This used to be commit 65e857b36e170e3ecd78bf6695ae73342e9c04cd)
2001-12-20much better auto-init of valid_table[]. This should just about removeAndrew Tridgell1-1/+12
the need for valid.dat (This used to be commit 0cfd0a5e543181b1384f7afee93fbaf3ccb2b999)
2001-11-28fixed some krb5 ifdefsAndrew Tridgell1-2/+2
(This used to be commit 23ef22f11700bbaa5778a9678a990a2b041fcefe)
2001-11-23More better now.Martin Pool1-4/+4
(This used to be commit a875b3a6e7a9501a31fe15fb9b04394a95484e77)
2001-11-23Quieten gcc const warning.Martin Pool1-17/+21
doxyfy. (This used to be commit 6ddd8e7bf69d8aee4148cbcf72de55c903d5f0a1)
2001-11-12messed up with patches, this should be the right one,Simo Sorce1-2/+1
sorry (This used to be commit 023514a0b6170b1907696a2147ee44dc3aa4589d)
2001-11-12some bugfix and new functions,Simo Sorce1-5/+43
modified mangle.c to use mosltly acnv_????() functions. this should make also build farm happy (This used to be commit 8bb5cb27c2012b8967482255d48a1b48d3acd9db)
2001-11-10fixed, moved and added some functionsSimo Sorce1-5/+41
note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c (This used to be commit 64dde3b64fc091cda95fc4ed145595b5d79b2e01)
2001-11-07add convert_string_allocate() functionSimo Sorce1-5/+86
(This used to be commit 8b494b0be323c983b7ea3d1dcf1f61216396caec)
2001-11-04a big one:Simo Sorce1-1/+7
- old mangle code has gone, the new one based on tdb seem resonably ok probably the valid.dat table need to be updated to treat wild chars as invalid ones (work ok without it) - a LOT of new string manipulation function for unicode, they are somewhat tested but a review would not be bad - some new function I will need for the new unix_convert function I'm writing, this will be renamed filename_convert and use only unicode strings. - charconv, I attached a comment, if someone wnat to look if I'm right or just was hacking to late in the night to make a sane one :) of course any bug is my responsibility an will be pleased to see patches if you find any. :-) Simo. (This used to be commit ee19f7efb6ea9216fc91cf112ac1afa691983e9d)
2001-10-29More spelling and grammer from Vance. <vance@digital-host.net>Andrew Bartlett1-6/+6
Thanks! Andrew Bartlett (This used to be commit f019bed7663b4a20c1b5ab6b59fcadda17b89acd)
2001-10-23get rid of compiler warnings (casts and delete unused variables)Herb Lewis1-7/+5
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
2001-10-03switched over to a new method of handling uppercase/lowercase mappingsAndrew Tridgell1-0/+1
for unicode strings. The new method relies on 3 files that are mmap'd at startup to provide the mapping tables. The upcase.dat and lowcase.dat tables should be the same on all systems. The valid.dat table says what characters are valid in 8.3 names, and differs between systems. I'm committing the japanese valid.dat here, in future we need some way of automatically installing and choosing a appropriate table. This commit also adds my mini tdb based gettext replacement in intl/lang_tdb.c. I have not enabled this yet and have not removed the old gettext code as the new code is still being looked at by Monyo. Right now the code assumes that the upcase.dat, lowcase.dat and valid.dat files are installed in the Samba lib directory. That is not a good choice, but I'll leave them there until we work out the new install directory structure for Samba 3.0. simo - please look at the isvalid_w() function and think about using it in your new mangling code. That should be the final step to correctly passing the chargen test code from monyo. (This used to be commit 1c221994f118dd542a158b2db51e07d04d0e9314)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-30make strupper() and strlower() not modify the string if it doesn'tAndrew Tridgell1-2/+2
need modifying that makes constant strings OK (This used to be commit 57196635d9b7edfcbfe1708dd22308ab30c02240)
2001-09-29Add a few const statements to various odd bits of the tree. (Fixes someAndrew Bartlett1-1/+1
warnings) (This used to be commit b648cc669d16eb40b477c8dc51efeab485a15de5)
2001-09-25added a little smbtorture test for dumping the unicode table of aAndrew Tridgell1-1/+0
server. This is just a framework right now - I want this to eventually replace the win32 test code from monyo The interesting this about this test is that it shows up a really horrible performance bug in our stat cache code. I'll see if I can fix it. (This used to be commit eb668b54af4925194c07b217724657f406ec00d0)
2001-09-24fixed a silly off by 1 bugAndrew Tridgell1-0/+3
(This used to be commit e558ab6ac8930e3393291fe12289ad43175b8a1d)
2001-09-07added "display charset" option in smb.conf, along with d_printf()Andrew Tridgell1-34/+61
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 (This used to be commit 266d8e67669adb329f25676c4bc4d4c50f223428)
2001-07-25ucs2 is always a multiple of 2 bytesAndrew Tridgell1-0/+6
this gets rid of a bunch of iconv warnings (This used to be commit 2ec59f731df6489756c5606ed63de90fb2a9241f)
2001-07-22changed the iconv interface to go via ucs2 for all conversions. ThisAndrew Tridgell1-2/+0
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. (This used to be commit 594f84b4e39182dcf344c02dc0185376a2726395)
2001-07-22switch from UCS2 to UCS-2LEAndrew Tridgell1-3/+2
(This used to be commit e236a3e29e4af24b20ec6af357ce67abf82b4528)
2001-07-08fixed the auto-initialisation of the iconv descriptorsAndrew Tridgell1-11/+11
(This used to be commit 66632782c583356550446638a832cc46a99f9f62)
2001-07-06check for initialisation in convert_string()Andrew Tridgell1-0/+6
otherwise initial load in smb.conf can fail (This used to be commit e9c53606de237f91712bb9d2a9fdf84b80bce38d)
2001-07-04more portability fixesAndrew Tridgell1-0/+2
(This used to be commit bf818268516cfbebcdeacbb0528395e9bbb8e442)
2001-07-04fixed uninitialised variableAndrew Tridgell1-1/+1
(This used to be commit a03992f19b268ca212ada5869c6fc93da5ac3c35)
2001-07-04The big character set handling changeover!Andrew Tridgell1-299/+285
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. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-03-11Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison1-2/+0
RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-02-14Baltic codepage fixes from Toomas Soome <tsoome@ut.ee>Tim Potter1-0/+62
(This used to be commit 1f1fcea06d658375b234bbfedcabcedd01c66a88)
2001-01-07Codepages and stuff for Turkish language support. Contributed byTim Potter1-0/+25
Deniz Akkus <akkus@alum.mit.edu> (This used to be commit 5650c143a706a0a65dfd55dea2248c6636a57912)
2000-02-18Fixes for Eastern Europe code page.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 0ec82d661a27a02322e5c8da20a18f33bfb24a3e)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1-75/+129
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1998-11-06lib/charcnv.c: Improved debug comment.Jeremy Allison1-1/+1
libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast and got a reply. smbd/dfree.c: smbd/noquotas.c: smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota code. utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat. Jeremy. (This used to be commit b5981c0149ad8c6f13ea87db450080616538b5d5)
1998-04-16reply.c: Fix bugs where debug statements were accessing the fd_ptr structJeremy Allison1-14/+14
internals after Andrews' code had memset it to zero (this was causing core dumps). charcnv.c: Fixes for ISO8859-2 from Petr Hubeny <psh@capitol.cz>. Jeremy. (This used to be commit df8783ca76d543d200c743f515a185cfea2880df)
1998-04-13Changes to allow Samba to be compiled with -Wstrict-prototypesJeremy Allison1-5/+5
with gcc. (Not a big change although it looks like it :-). Jeremy. (This used to be commit cd2613c57261456485fe4eeecfda209ada70de8e)
1998-04-02Updated Eastern European translation table from dan@feld.cvut.cz.Jeremy Allison1-4/+20
Jeremy. (This used to be commit 84d858782eca2077cd0ce089b156938fa122cf93)
1998-03-03Change the multibyte character set support so thatJeremy Allison1-8/+0
Kanji support is one case of multibyte character support, rather than being a specific case in single byte character support. This allows us to add Big5 Chinese support (code page 950) and Korean Hangul support (code page 949) at very little cost. Also allows us to easily add future multibyte code pages. Makefile: Added codepages 949, 950 as we now support more multibyte codepages. asyncdns.c: Fixed problem with child being re-spawned when parent killed. charcnv.c charset.c client.c clitar.c kanji.c kanji.h smb.h util.c loadparm.c: Generic multibyte codepage support (adding Big5 Chinese and Korean Hangul). nmbd.c: Fixed problem with child being re-spawned when parent killed. mangle.c: Modified str_checksum so that first 15 characters have more effect on outcome. This helps with short name mangling as most 'long' names are still shorter than 15 chars (bug was foobar_mng and foobar_sum would hash to the same value, with the modified code they hash differently. Jeremy. (This used to be commit 299016338cfb47f0c585875ef9b468121fcee97d)