summaryrefslogtreecommitdiffstats
path: root/source/lib/util_unistr.c
Commit message (Collapse)AuthorAgeFilesLines
* init_valid_table: Fix a memory leak that would lose theMartin Pool2003-02-261-8/+15
| | | | | dynamically-created valid table every time the configuration was reloaded.
* Doxygen janitorMartin Pool2003-02-211-3/+10
|
* Return 0 instead of crashing when a NULL source string is passedTim Potter2003-01-291-0/+1
| | | | to rpcstr_pull()
* patches from UrbanGerald Carter2002-11-081-0/+2
|
* reverted an incorrect fix. What I was trying to do was fix a problemAndrew Tridgell2002-10-211-1/+1
| | | | | | | with filenames with spaces in mangle_hash.c but the real problem is that mangle_hash.c assumes that the set of valid characters for 8.3 names is the same as the set of valid characters for long names. Thats an invalid assumption, with space being the obvious example.
* a space is a standard valid character in a filenameAndrew Tridgell2002-10-211-1/+1
|
* added a useful unistr2 display functionAndrew Tridgell2002-08-221-0/+10
|
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-141-0/+41
| | | | | | | | | | | | | | <mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett
* OpenPrinter() merge from 2.2Gerald Carter2002-03-261-0/+32
|
* must use native endian index when creating default valid.dat table so itHerb Lewis2002-03-211-2/+2
| | | | is the same on big and little endian systems.
* fixed the upper/lower case table generation on big-endian machinesHerb Lewis2002-03-061-9/+26
| | | | (tridge, using Herbs console)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* fixed warnings on irix and crash bug on big endian machinesAndrew Tridgell2001-12-201-1/+5
|
* much better auto-init of valid_table[]. This should just about removeAndrew Tridgell2001-12-201-7/+43
| | | | the need for valid.dat
* mark '.' as a valid characterAndrew Tridgell2001-12-201-1/+1
|
* The beginnings of alternative backends for winbinddAndrew Tridgell2001-12-011-0/+17
| | | | | | This just splits off the dispinfo call behind a methods structure. I'll split off a few more functions soon, then we will be ready for LDAP replacement methods
* fixed typoAndrew Tridgell2001-11-291-1/+1
|
* fixed toupper_w() and friends on big-endianAndrew Tridgell2001-11-291-6/+6
| | | | this fixes the core dumps on sparc
* 2nd attempt at fixing lame char tables on big endian machinesAndrew Tridgell2001-11-291-6/+6
|
* fixed lame char tables on big endian machinesAndrew Tridgell2001-11-291-5/+5
|
* fixed some bugs.Simo Sorce2001-11-181-9/+5
|
* some bugfix and new functions,Simo Sorce2001-11-121-3/+42
| | | | | modified mangle.c to use mosltly acnv_????() functions. this should make also build farm happy
* fixed, moved and added some functionsSimo Sorce2001-11-101-93/+112
| | | | note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c
* Added missing strchr_wa.Jeremy Allison2001-11-041-0/+5
| | | | Jeremy.
* a big one:Simo Sorce2001-11-041-23/+182
| | | | | | | | | | | | | | | | | - 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.
* remove {} from default valid char listAndrew Tridgell2001-11-041-1/+1
|
* old fixes I forgot to commitSimo Sorce2001-10-091-5/+5
|
* fixed lame valid tableAndrew Tridgell2001-10-071-2/+2
|
* fixed basic ucs2 operation on big endian boxes. Still a bit more toAndrew Tridgell2001-10-031-5/+5
| | | | do, but at least you can connect now.
* switched over to a new method of handling uppercase/lowercase mappingsAndrew Tridgell2001-10-031-69/+70
| | | | | | | | | | | | | | | | | | | | | | 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.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
|
* make strupper() and strlower() not modify the string if it doesn'tAndrew Tridgell2001-09-301-4/+14
| | | | | | need modifying that makes constant strings OK
* - the inactive core of the new mangling code that use tdbSimo Sorce2001-09-251-0/+107
| | | | - some more utils for unicode string manipulation
* fixes big endian unistring problems. Need to check that it didn'tHerb Lewis2001-08-241-2/+9
| | | | break little-endian machines.
* It looks like the rpc client code in libsmb hasn't been converted to theTim Potter2001-07-201-0/+10
| | | | | | | | | | | | new internal string stuff. The main problem is that some unicode strings are null terminated and some aren't. There's no rhyme or reason to it - some pipes have 99% of the strings terminated and some have 99% unterminated. To avoid having to actually know the termination policy, I propose a set of functions that take a UNISTR2* and use the length contained there. Added rpcstr_pull_unistr2_string() function to convert a unicode string of dubious termination to a fstring.
* removed some unnecessary codeAndrew Tridgell2001-07-181-10/+0
|
* fixed strrchr_mAndrew Tridgell2001-07-061-4/+3
|
* unicode string length is twice longer ;-)Jean-François Micouleau2001-07-041-1/+1
|
* The big character set handling changeover!Andrew Tridgell2001-07-041-1573/+71
| | | | | | | 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.
* Added other_safe_chars to alpha_strcpy(). Needs testing but is a betterJeremy Allison2001-06-231-2/+6
| | | | | fix for the problem. Jeremy.
* next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell2001-06-211-150/+0
| | | | | | | | | but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour
* Fix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversionJeremy Allison2001-06-121-30/+16
| | | | | problems. Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-2/+2
| | | | Jeremy.
* AS/U on a sparc now joins and authenticates against a Samba PDC !Jeremy Allison2001-03-151-69/+1
| | | | Jeremy.
* Fixed reading of strings from big-endian RPC clients.Jeremy Allison2001-03-131-0/+68
| | | | Jeremy.
* make ascii_to_unistr always use little-endian. This fn is never usedAndrew Tridgell2001-02-211-2/+5
| | | | | | except in my code so I know this is safe. otherwise unicode client lib doesn't work on big-endian hosts
* initial client side unicode support (needed for netapp filer)Andrew Tridgell2001-02-201-1/+1
| | | | | | | | | | | | | | | I've currently got this code disabled by default as it is incomplete. You enable it by setting a USE_UNICODE environment variable. Once the support is complete this check will be removed and the CAP_UNICODE capability bit will be the sole determination of whether the client library code uses unicode right now I have converted session_setup and tconx. I will do more fns over the next few days. see clistr.c for the new client side string interface. Luckily it tends to make the code smaller and neater while adding unicode support.
* Removed uninitialised variable.Jeremy Allison2000-12-201-1/+0
| | | | Jeremy.
* A couple more UMR fixes.Jeremy Allison2000-12-181-2/+2
| | | | Jeremy.
* Never free anything in the rpc_parse/prs_XXX functions. Do it in the enclosingJeremy Allison2000-12-151-5/+5
| | | | | | | function. lib/util_unistr.c: Check lengths *before* reading source - prevent uninitialised memory reads. Jeremy.