memory allocated with mprintf should be freed with fossil_free(), not free()
use _wsystem() in stead of system() on Windows.
Use g.argv[0] in stead of fossil_nameofexec() when the full path is not necessary, e.g for "Usage" prints.
check-in: 06ba3ace user: jan.nijtmans tags: trunk

In the MinGW makefile, instead of attempting to auto-detect if the Windows command prompt is being used, rely on the manually set USE_WINDOWS variable instead.
check-in: 7bf4c290 user: mistachkin tags: trunk

Minor additional fixes related to [c8c0b78c84]:
- Use _wsystem() in stead of system() on Windows
- Use g.argv[0] in stead of fossil_nameofexe() where only printing is involved
- Use fossil_nameofexe() where fossil_system() is involved
- Move the determination of the full windows path to fossil_nameofexec,
so g.argv[0] can always be the unmodified argv[0]
- g.argv[0] and fossil_nameofexec() are in utf-8, so we cannot use fprintf
directly. Exception: when printing malloc errors.
Closed-Leaf
check-in: be06861f user: jan.nijtmans tags: ticket-c8c0b78c84

Revert change [208d67675c]. The policy is to keep the Fossil source code
ASCII even if Fossil itself is able to handle non-ASCII source files.
Furthermore, the [208d67675c] change broken things. Also backout
change [34fcb9634e] since it complicates the C code with unnecessary
backslash characters in order to changes single-quotes to double-quotes
in the generated HTML and Javascript, which is pointless.
check-in: c19f34cb user: drh tags: trunk

undo [bf079432fb]: It's crucial for the Tcl fossil repository to be
able to do a no-op merge-mark. This change would make that impossible.
Closed-Leaf
check-in: 41577fd3 user: jan.nijtmans tags: broken-msvc-2

An attempt to factor out the opendir() family of routines and provide
portable alternatives, fossil_opendir(). This simplistic first attempt
works on non-windows platforms, but the build fails on windows.
check-in: 8d8e529a user: drh tags: msvc-broken

This change allows html entities (like &rarr; and &bull;) in all c-sources
to be replaced by its utf-8 equivalent (→,•). The translate utility will translate this to the right escape-sequence, so the C-compiler can handle it.
As long as the C-source doesn't contain any utf-8 characters, this generates
exactly the same *_.c files as before.
check-in: b5e2e500 user: jan.nijtmans tags: utf8-in-sources

Fix an off-by-one error in the version-3 clone protocol. This error might
cause an incomplete and corrupt clone if a transfer block fills up just before
sending the very last blob.
check-in: 0db6f981 user: drh tags: trunk

new functions fossil_unicode_to_utf8 and fossil_utf8_to_unicode.
Modify file_delete, file_tempname, fossil_getenv and fossil_fopen to use it, so now they can handle all unicode characters not only the ones from the mbcs
This should allow all filenames and environment variables to contain unicode characters, without problems on WIN32.
If main.c is compiled with -DUNICODE -D_UNICODE, then command line arguments allow unicode characters on win32 as well. Build system not adapted for that yet.
check-in: 65c8ca05 user: jan.nijtmans tags: eclipse-project

In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/ws2tcpip.h:11:0,
from src/cgi.c:29:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h
src/file.c:47:0: warning: "stat" redefined
/usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/stat.h:258:0: note: this is the location of the previous definition
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/ws2tcpip.h:11:0,
from src/http_socket.c:35:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h
src/shell.c:67:0: warning: "popen" redefined
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:503:0: note: this is the location of the previous definition
src/shell.c:68:0: warning: "pclose" redefined
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:504:0: note: this is the location of the previous definition
Closed-Leaf
check-in: b5d69afe user: jan.nijtmans tags: jn-mingw-w64-compiler-warnings

Add <base href="$baseurl/"> to the html header in the default
configuration and in all built-in skins. Add a warning if <base>
is not configured. Generate hyperlinks from wiki relative to the
<base>
check-in: 31732d77 user: drh tags: wysiwyg

Automatically clean up the HTML that is generated by webbrowsers and
by the Fossil wiki-to-html translator so that the HTML is easier to
read in the wysiwyg editor.
check-in: fb6f1b7b user: drh tags: wysiwyg

Create a javascript function $(id) which is an alias for
document.getElementById(id). Use the $(id) function everywhere that
document.getElementById(id) was used.
check-in: 97d651b8 user: drh tags: trunk

/ci_edit now auto-checks the Add Tag checkbox if the user types in the tag name field. Thanks to Nolan D. for the suggestion and Steve H. for the graceful solution.
check-in: 542f989a user: stephan tags: trunk

Added query reset, refactored bind commands to accept their indexes in the same way as the col commands do (and expanded the remaining col commands which did not do so).
check-in: f2ee33d4 user: stephan tags: th1-query-api