Fossil

Check-in [c7c510e3b9]
Login

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

Overview
Comment:If fossil is compiled using "--disable-internal-sqlite" for Cygwin, the additional call to fossil_utf8_to_filename() is not needed any more: SQLite 3.8.3.1 for Cygwin can already handle win32 paths as well as cygwin paths.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c7c510e3b994fd58c7647cbabb63cde00f086277
User & Date: jan.nijtmans 2014-02-21 15:44:52.753
Context
2014-02-22
05:31
Add some utility functions to tester.tcl to reduce boilerplate code in certain tests. check-in: 23d3113bb1 user: joel tags: trunk
2014-02-21
15:44
If fossil is compiled using "--disable-internal-sqlite" for Cygwin, the additional call to fossil_utf8_to_filename() is not needed any more: SQLite 3.8.3.1 for Cygwin can already handle win32 paths as well as cygwin paths. check-in: c7c510e3b9 user: jan.nijtmans tags: trunk
04:59
Keep track of versionable and text-area based settings using discrete fields of the stControlSettings structure. check-in: 9b2d565931 user: mistachkin tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
** Open a database file.  Return a pointer to the new database
** connection.  An error results in process abort.
*/
LOCAL sqlite3 *db_open(const char *zDbName){
  int rc;
  sqlite3 *db;

#if defined(__CYGWIN__)
  zDbName = fossil_utf8_to_filename(zDbName);
#endif
  if( g.fSqlTrace ) fossil_trace("-- sqlite3_open: [%s]\n", zDbName);
  rc = sqlite3_open_v2(
       zDbName, &db,
       SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
       g.zVfsName







|







713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
** Open a database file.  Return a pointer to the new database
** connection.  An error results in process abort.
*/
LOCAL sqlite3 *db_open(const char *zDbName){
  int rc;
  sqlite3 *db;

#if defined(__CYGWIN__) && !defined(USE_SYSTEM_SQLITE)
  zDbName = fossil_utf8_to_filename(zDbName);
#endif
  if( g.fSqlTrace ) fossil_trace("-- sqlite3_open: [%s]\n", zDbName);
  rc = sqlite3_open_v2(
       zDbName, &db,
       SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
       g.zVfsName