History of src/blob.c of 7c3cb28d0f76c038
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file src/blob.c at check-in 7c3cb28d0f76c038

2013-07-11
20:04
Move the "looks_like" functions out of diff.c and into a source file of their own: "lookslike.c". file: [b648d6a679] check-in: [b4c97d76a7] user: drh branch: sbsreloaded, size: 29428
2013-04-05
07:44
Branches "use-blob_strip_bom" and "improve_commit_warning" go together in a single new (experimental) branch file: [13336c7d7b] check-in: [a7e77a66b0] user: jan.nijtmans branch: ui-no-utf8, size: 30937
2013-03-21
10:57
merge trunk (testcases not adapted yet!) file: [16d4b23577] check-in: [43aa3b2d8b] user: jan.nijtmans branch: improve_commit_warning, size: 30748
2013-03-19
10:06
merge trunk (still experimental) file: [6b98e48875] check-in: [af4d780446] user: jan.nijtmans branch: use-blob_strip_bom, size: 29567
2013-03-18
07:10
Rename blob_remove_cr() to blob_to_lf_only() since that is what it now does. Also, improvements to style and related comments. file: [8ba8a0156a] check-in: [757585fb28] user: mistachkin branch: trunk, size: 29378
2013-03-15
11:32
Allow blob_remove_cr() to be used for both \r\n -> \n as well as \r -> \n conversions. file: [c07e26dc0f] check-in: [4b2c2a519f] user: jan.nijtmans branch: trunk, size: 29339
2013-03-08
13:02
merge trunk file: [cd8293628f] check-in: [17e972c318] user: jan.nijtmans branch: improve_commit_warning, size: 30630
2013-03-04
13:19
Improve fossil_utf8_to_filename() for cygwin: no longer hardcode "/cygdrive/" prefix. Fix Cygwin's handling of absolute win32 paths in a few more places. Teach Cygwin how to handle UTF-16. file: [25313f3db2] check-in: [18d8d2a69d] user: jan.nijtmans branch: build-breaker, size: 29260
2013-02-27
11:26
merge trunk file: [02093fe11d] check-in: [d085eb9aca] user: jan.nijtmans branch: use-blob_strip_bom, size: 29319
2013-02-17
21:37
merge trunk file: [161a8f9c0f] check-in: [fdf9050c4b] user: jan.nijtmans branch: improve_commit_warning, size: 30500
2013-02-13
03:14
Improvements to the UTF-16 BOM detection. file: [529020455d] check-in: [81c4d78137] user: mistachkin branch: utf16Bom, size: 29130
2013-02-08
09:37
Eliminate use of starts_with_utf16(be|le)_bom functions, starts_with_utf16_bom should be enough. External code will typically call "starts_with_utf16_bom" first, and if it returns true call "blob_to_utf8_no_bom" converting it to utf-8. There is no reason any more then for external code to know wheter the BOM was le or be. file: [a7eb950f45] check-in: [fab09a1710] user: jan.nijtmans branch: trunk, size: 29123
2013-02-07
09:39
merge trunk file: [2fbb472f56] check-in: [8994f3680a] user: jan.nijtmans branch: improve_commit_warning, size: 30463
08:47
Combine 4 "starts_with_utf??_bom" functions to a single - easier to use - function "starts_with_bom". In addition, it only checks for an UTF-16 BOM if the blob has an even number of bytes. file: [277da9b24f] check-in: [6c417d8bf5] user: jan.nijtmans branch: simplify-starts-with, size: 29093
2012-12-12
15:35
completed cp1252 table and conversion file: [88d683f8c9] check-in: [bab2f28b60] user: jan.nijtmans branch: improve_commit_warning, size: 30700
13:53
Add optional iso8859-1 to utf-8 conversion. Still to do: special cp1252 characters. file: [49121a2f78] check-in: [4f060f6afb] user: jan.nijtmans branch: improve_commit_warning, size: 29965
2012-11-29
03:14
Untested changes designed to fix broken filename encodings on MacOS. Move all character-set converting routines into a new file called utf8.c. Add the fossil_filename_to_utf8() routine, which converts Unicode to utf8 on windows and decomposed utf8 into precomposed utf8 on Mac. Ticket [e399bc1edfe45b] file: [36041aba34] check-in: [c24e568fb0] user: drh branch: ticket-e399bc, size: 29330
2012-11-27
09:42
blob_to_utf8_no_bom(): the starts_with_utf16(le|be)_bom calls were swapped. file: [050ea8cc85] check-in: [d27cddf17c] user: jan.nijtmans branch: trunk, size: 29324
2012-11-26
22:51
Merge byte-order-mark handling enhancements to trunk. file: [984c60deab] check-in: [9b800ee41c] user: mistachkin branch: trunk, size: 29324
2012-11-19
04:39
Modularize byte-order-mark and blob UTF-8 conversion handling. file: [97b87daf37] check-in: [d29dd5449c] user: mistachkin branch: convert_before_commit_v2, size: 29255
2012-11-06
18:31
When trying to create a directory, if mkdir fails, make sure the directory doesn't already exist before giving up and reporting an error. file: [357fba7532] check-in: [bc74a8171d] user: drh branch: trunk, size: 29615
2012-11-05
13:56
merge trunk file: [d0d7daa155] check-in: [b0e05a90b6] user: jan.nijtmans branch: use-blob_strip_bom, size: 29827
2012-11-04
12:59
Fix typos. file: [7bd5b3131b] check-in: [45065c5c28] user: dmitry branch: spelling, size: 29591
2012-11-02
21:33
Fix an out-of-order variable declaration in blob.c. file: [6acd36518d] check-in: [9073d8dcc7] user: drh branch: trunk, size: 29590
2012-11-01
14:02
bug-fix: Before preparing a diff, BOM's should not be removed. It might result in a BOM in the middle of UTF-8, which is invalid, but that's how diff works. file: [6e329da33c] check-in: [cd06b7d8af] user: jan.nijtmans branch: use-blob_strip_bom, size: 29826
2012-10-31
12:12
Enhance the control-artifact parser to optionally return an error when the parse fails. Fix a bug in the artifact parser which caused it to ignore Z-card checksum failures. file: [0320a4f8d6] check-in: [aab9e66b8b] user: drh branch: trunk, size: 29590
2012-10-25
10:27
use utf8 in stash comment editor on Windows, just like the commit comment editor file: [3e6c350ebb] check-in: [fb565614db] user: jan.nijtmans branch: trunk, size: 29551
2012-09-07
07:53
Enable unicode commandline and unicode console output for msvc builds. file: [ab2e4ebceb] check-in: [286950208c] user: jan.nijtmans branch: unicode-cmdline, size: 27599
2012-09-05
07:31
make output to the Windows console binary-safe file: [92cbf5adbe] check-in: [a830168d3f] user: jan.nijtmans branch: eclipse-project, size: 27611
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [e1a0e5d763] check-in: [9f6abc5968] user: jan.nijtmans branch: msvc-broken, size: 27720
2012-08-03
18:41
merged in [336e1355b927f]. file: [5dde17e478] check-in: [82e78034da] user: stephan branch: th1-query-api, size: 27720
2012-07-26
17:27
Removed legacy comparison of uint<0 (the type used to be 'long', IIRC). Thanks to Doug C. for the report. file: [ae8377eef8] check-in: [bff50b17eb] user: stephan branch: trunk, size: 27721
2012-07-16
18:56
Cleanups requested by DRH, plus some incidental consistency/maintenance-related cleanups found along the way. file: [0f042d1f79] check-in: [c25a5d199b] user: stephan branch: th1-query-api, size: 27766
14:37
cherry-picked [4295728159451e0d]. file: [0e9bbff2d9] check-in: [a7eb714758] user: stephan branch: trunk, size: 27767
14:36
Minor doc correction. file: [885b8b443f] check-in: [4295728159] user: stephan branch: th1-query-api, size: 27791
2012-07-14
18:32
Added PHP-like "ob" (output buffering) API to th1. Refactred Th_Vtab allocator to use a single realloc()-like interface. file: [e5db248168] check-in: [b793063954] user: stephan branch: th1-query-api, size: 27747
2012-07-13
16:56
Added blob_swap() to simplify some json code. file: [daac777e30] check-in: [2e2cd82bac] user: stephan branch: trunk, size: 27723
2012-03-19
05:24
Modify file_simplify_name to accept a parameter used to determine if the trailing slash, if any, should be retained. Make use of this when converting the local root to its canonical form. file: [373449e30b] check-in: [e94c7cc4de] user: mistachkin branch: winFiles, size: 27481
04:48
In file_tree_name, since the file name argument is converted to its canonical form prior to the memcmp, the local root must be as well. On Windows, normalize drive letters to uppercase when converting a file name to its canonical form and fix construction of temporary file names used with the gdiff command when the --from and --to options are present. file: [3cd2637a05] check-in: [6be0898b2c] user: mistachkin branch: winFiles, size: 27478
2011-11-04
17:24
merged in trunk [272e304d3f]. file: [055253a944] check-in: [34359c3ad1] user: stephan branch: json, size: 27400
2011-11-02
15:23
Update the blob_write_to_file() routine so that it correctly handles binary files being send to standard output. file: [295da8c0d2] check-in: [83a574b019] user: drh branch: trunk, size: 26559
2011-10-14
16:11
Merging the annotate_noleak changes, about removing an important memory leak in the annotate operation. It also fixes some blob behaviour in blob.c and content.c. <b>Update:</b> Removed from trunk. Replaced by the must simpler fix at [9929bab702f99839ee] file: [c0166c1ab4] check-in: [409f370a6d] user: viriketo branch: declined, size: 26324
2011-10-11
14:28
merged in trunk [496edc2176]. file: [791c4dccf4] check-in: [ec76ee16fd] user: stephan branch: json, size: 27152
2011-10-10
20:02
Fix some compiler warnings. file: [fc0553c09d] check-in: [496edc2176] user: drh branch: trunk, size: 26311
2011-10-04
23:40
merged and conflict-resolved trunk [c0274f996266aef]. file: [f34102c1c7] check-in: [4fbf77d4f3] user: stephan branch: json, size: 27120
14:34
Rename constant_time_eq to constant_time_cmp to better indicate that these functions return 0 when values are equal, like memcmp, strcmp, etc., not truth, to avoid possible mistakes. file: [b3b9e9b4d9] check-in: [d244c484e7] user: dmitry branch: dmitry-security, size: 26279
2011-09-30
09:41
Catch zero length early in blob_constant_time_eq(). file: [2fac98d117] check-in: [e3d022dffa] user: dmitry branch: dmitry-security, size: 26278
2011-09-29
17:26
Fix comment. file: [9151312d19] check-in: [a0fa120b74] user: dmitry branch: dmitry-security, size: 26268
17:21
Protect against timing attacks by using constant-time comparison function to compare passwords and cookies. file: [22d53d8b22] check-in: [7f110475ec] user: dmitry branch: dmitry-security, size: 26272
2011-09-15
12:03
initial mass-change merge of main repo with my fork. file: [efc709083a] check-in: [5b44a419cd] user: stephan branch: json, size: 26537
2011-09-08
11:59
Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support. Fix renaming of symlinks when merging (via new function symlink_copy()). Rename create_symlink() to symlink_create(). file: [17c9021601] check-in: [8a0c546990] user: dmitry branch: symlinks, size: 25696
2011-09-04
20:41
What I did to get the 'annotate' command not leak. Notice that I disabled again the check for blob_is_reset, as in trunk. file: [30d6c3eb76] check-in: [7ad4dfbe8b] user: viriketo branch: annotate_noleak, size: 25706
2011-08-28
11:22
Make blob_read_link() C89-compatible on Unix again. file: [dab8584f2a] check-in: [034819087d] user: dmitry branch: symlinks, size: 25693
10:43
Handle errors in blob_read_link(). file: [d1b4c45d96] check-in: [d43029f6f4] user: dmitry branch: symlinks, size: 25673
2011-08-26
14:59
Merge the latest trunk changes into the symlinks branch. file: [bef04e3b11] check-in: [24c16584cc] user: drh branch: symlinks, size: 25613
2011-08-23
15:45
Fix several harmless compiler warnings. file: [ab5fb192b4] check-in: [553159aa0d] user: drh branch: trunk, size: 25100
2011-08-22
22:20
Merge trunk. file: [77bb6b4f88] check-in: [c57830bec2] user: dmitry branch: symlinks, size: 25627
2011-05-26
11:29
Make arrangements for the output of "fossil status" to go through the UTF8 to MBCS translation. Ticket [3f0216560679fd] file: [9828b1788a] check-in: [02a6aa2d5e] user: drh branch: trunk, size: 25114
2011-05-13
17:13
Ignore short writes when writing to the console. file: [b2ba38948b] check-in: [e7babf5222] user: drh branch: windows-i18n, size: 25145
2011-05-12
14:04
Initialize the output buffer for blob_compress prior to invoking zlib in order to avoid valgrind warnings about reading uninitialized memory. file: [ef17fb8f5b] check-in: [c9bb729d5d] user: drh branch: trunk, size: 25133
2011-05-07
11:42
Convert the fopen() in blob_write_to_file() into fossil_fopen(). file: [fb10a655b4] check-in: [4373976553] user: drh branch: windows-i18n, size: 25130
2011-04-28
13:53
Make sure the argument to fopen() is MBCS instead of UTF8. file: [5e94465b64] check-in: [a3c252f237] user: drh branch: windows-i18n, size: 25123
2011-04-27
18:21
Attempt to get Fossil working on windows systems that do not use UTF8 in the shell. file: [0cf11317ed] check-in: [e805fa8db9] user: drh branch: windows-i18n, size: 25116
2011-04-25
20:10
Further work toward two-way configuration sync. Need to check in these changes before they are complete in order to deal with another issue. file: [8778dee32e] check-in: [71fc181fee] user: drh branch: trunk, size: 25104
2011-02-17
20:44
Make sure manifest_crosslink() resets its input blob and that callers know this and do not attempt to reuse that blob. file: [e830421a20] check-in: [d22519e500] user: drh branch: trunk, size: 24021
2011-01-28
19:04
Add symlink support for Unix. New settings flag "allow-symlinks" controls this (off by default). file: [32a666f5c2] check-in: [ed2ef7e9a3] user: dmitry branch: symlinks, size: 23918
2010-12-23
17:53
Fix a (harmless) buffer size miscalculation in the decompression logic. file: [0fea3d3fc3] check-in: [52aa366c18] user: drh branch: trunk, size: 23430
2010-12-18
18:56
The "stash" functionality is now in place. Need to test more prior to merging into trunk. file: [8c7994b7d6] check-in: [22aa74dcdf] user: drh branch: experimental, size: 23437
2010-12-02
14:46
Remove some instances of strcpy() and sprintf() due to warnings on OpenBSD. Update the internal SQLite to the latest 3.7.4 release candidate. file: [882f5c6ad3] check-in: [3ad5891c72] user: drh branch: trunk, size: 23328
2010-10-22
14:48
Use a faster tokenizer on manifests to reduce rebuild times by about 5%. file: [d2a3e719f3] check-in: [121ed7c882] user: drh branch: experimental, size: 24131
2010-10-15
17:13
Replace all malloc() calls with fossil_malloc(). The fossil_malloc() routine panics rather than return a NULL pointer. file: [61f2d8953f] check-in: [8f41b2fa75] user: drh branch: trunk, size: 23319
2010-10-14
19:14
Remove all use of ctypes.h in order to avoid compiler warnings and other problems associated with changing locales. file: [60c31d96fb] check-in: [2fac809165] user: drh branch: trunk, size: 23369
18:38
Work towards including full text of deleted and added files in a diff when the -N or --new-file option is used. Ticket [e90d38c2054e9b44792eb] file: [1fa58c14e3] check-in: [585360b47d] user: drh branch: trunk, size: 22862
2010-10-03
00:21
Add support for tags on events, including the ability to display a timeline of all events with a particular tag. file: [f81b137911] check-in: [a1fcb97dfa] user: drh branch: experimental, size: 22862
2010-08-31
01:53
Merge the changes from the windowscompilers branch into the trunk. file: [c87f80b301] check-in: [3564af0f7a] user: drh branch: trunk, size: 22869
2010-08-28
06:59
This is the first check-in on the windowscompilers branch and it adds the <a href="http://www.digitalmars.com/">Digital Mars C compiler</a> The user should have dmc installed in c:\DM with zlib in c:\DM\extra\lib and c:\DM\extra\include. typing c:\DM\bin\make -f win\Makefile.dmc builds fossil.exe in dmcobj The following files were edited or added: <p>Checks if one of the windows compilers is used. If so we define _WIN32. Defining _WIN32 is normally done by<br>#include &lt;windows.h&gt;<br> However most of the time we don't use windows.h. </p> <p>Adding an other windows compiler is done by adding<br> "|| defined(__COMPILER_IDENTIFIER__)"<br> and maybe some special things in the files below. Like <pre> </pre> </p> <p>These have all __MINGW32__ replaced by _WIN32. And in some places special processing for either MINGW32 or DMC <p>In popen2 the _open_osfHandle call first parameter is cast to a long. DMC refused to compile without the cast.</p> <p>DMC complained that it didn't knew of time_t in rss.h. time.h came after rss.h. Switching the two solved it! </p> <p>added tcl code to generate Makefile.dmc. tclsh src/makemake.tcl dmc prints to stdout the makefile. As a convienience to the end-user I added the win/Makefile.dmc to the repository. There are few changeable variables in there for adjusting path, CFLAGS LIBS etc. </p> <p>These are needed because DMC and MSVC doesn't provided them. dirent.h is copied verbatim from the net. unistd.h I found on the net too, but added some defines. <p>The problem with windows it doesn't have AWK standard installed. version.c creates VERSION.h. It is a very simple C-program and doesn't do a lot of checking. </p> file: [4d3d1c78e6] check-in: [f66f414fd3] user: renez branch: windowscompilers, size: 22377
2010-08-27
20:40
The ssh:// method on windows is now working well with plink. It will even prompt for passwords if the URL contains a "*" password. file: [8fa2fcda2d] check-in: [0cdb6403cb] user: drh branch: trunk, size: 22866
2010-07-08
17:53
Take care to close the connection to the database file before existing. This gives the database a chance to clean up (and, for example, delete WAL and shared-memory files). file: [4074607102] check-in: [932825bc6a] user: drh branch: trunk, size: 22374
2010-05-16
19:08
Change from GPL to the Simplified BSD License. file: [4860d217e0] check-in: [c06edd231f] user: drh branch: clear-title, size: 22367
2010-01-14
15:34
If a "merge" or "update" or "revert" fails, then automatically rollback any partial changes to the filesystem. Ticket [a9722a15d2]. file: [d09d74271a] check-in: [7c3cb28d0f] user: drh branch: trunk, size: 22643
2009-08-27
18:33
Various small performance enhancements. file: [80cddafe2a] check-in: [4c37130fde] user: drh branch: trunk, size: 22575
2009-03-27
14:32
Infrastructure in place on the client side to encrypt sync traffic. This is mostly untested so far because we do not yet have a server that understands encrypted traffic. file: [10f9b677e2] check-in: [9a23c348b1] user: drh branch: experimental, size: 27062
2009-03-26
23:26
Completed implementation of utility functions to encrypt and decrypt blobs. file: [2ed932bfd8] check-in: [bf16ab9b7b] user: drh branch: experimental, size: 26682
15:32
Incremental changes toward encrypting sync traffic. The changes are incomplete, but all legacy functionality appears to still works. file: [4adbb9d2f8] check-in: [5468ec7c5e] user: drh branch: experimental, size: 25566
2008-11-03
21:56
Use our own isspace() function since the standard-library isspace() sometimes gives incorrect results for non-ASCII characters. file: [1998856256] check-in: [054dd31b71] user: drh branch: trunk, size: 22306
2008-10-26
02:29
Prevent buffer overrun when adding \r characters to the check-in descriptions for win32. Ticket [41bb23e650]. file: [2492695b87] check-in: [e44d7a4b5a] user: drh branch: trunk, size: 22032
2008-06-08
19:31
Use cr/nl instead of just nl at the end of every line on the check-in comment template for windows. Strip out the cr characters before completing the commit. file: [ea84a9c14c] check-in: [e976aa6fcb] user: drh branch: trunk, size: 22065
2008-03-06
22:58
Work toward making fossil work better on large repositories. This version implements a cache in the content manager. It is not clear yet if this is necessarily a good idea - this check-in might end up on an abandoned branch at some point. file: [abc48788ed] check-in: [61ddd63b72] user: drh branch: trunk, size: 21369
2008-02-21
14:27
Record whether or not files have their execute permission bit set. Set or clear the execute permission bit upon checkout. file: [2269ea6655] check-in: [33c31f73cd] user: drh branch: trunk, size: 21390
2007-11-22
22:55
Add the %w and %W formatting options for internal printf usage. Use these formatting characters to render wiki. Fix additional problems of unterminated wiki on webpage rendering by using %w. (There are probably more problems yet to be discovered and fixed.) file: [e355ed75f1] check-in: [2859293737] user: drh branch: trunk, size: 21359
2007-11-16
20:42
Rework the merge algorithm. It now only works for text files. But, it no longer gets confused by line endings (\r\n versus \n) and it reports conflicts. file: [1da99958db] check-in: [36b96b8616] user: drh branch: trunk, size: 21682
2007-10-02
18:58
Begin adding the ticket configuration processing logic. file: [d66858e82e] check-in: [2e9d52f27f] user: drh branch: trunk, size: 20674
2007-09-22
06:47
Win32 port now functional except network operations. This commit was done on windows :-). See win32.txt for status of all commands. No networking commands are functional yet. All path operations are now functioning. file: [70f1a3c914] check-in: [c7278fd013] user: jnc branch: trunk, size: 19933
2007-08-30
19:46
Fix multiple bugs in the comment parser of the commit command. Allow blank lines in comments. file: [f2c016552c] check-in: [f030c0aea7] user: drh branch: trunk, size: 19619
2007-08-28
07:12
Fixed bug in blob_write_to_file, added missing argument to fossil_panic. file: [57c4e58592] check-in: [033ad72c71] user: aku branch: trunk, size: 19613
2007-07-23
20:33
Work on network synchronization file: [8ec1e279a6] check-in: [75c476ccd1] user: drh branch: trunk, size: 19606
2007-07-21
14:10
Added: Initial check-in of m1 sources. file: [98f347f72a] check-in: [dbda8d6ce9] user: drh branch: trunk, size: 19536