Fossil with Commonmark

Check-in [c780793749]
Login

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

Overview
Comment:add mkdir to the unicode-supported functions add chinese-named file and directory in test directory, demonstrating the fix [01a2f3a346]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ticket-01a2f3a346
Files: files | file ages | folders
SHA1: c780793749f436abad9753df283d701b1b063873
User & Date: jan.nijtmans 2012-08-24 13:42:27
Original Comment: add mkdir to the unicode-supported functions add chinese-named file and directory in test directory, demonstrating the fix
Context
2012-08-26
18:17
merge trunk into unicode branch, and fix build on UNIX check-in: 8596323b5b user: jan.nijtmans tags: ticket-01a2f3a346
2012-08-24
14:50
merge unicode branch check-in: b4ea94b488 user: jan.nijtmans tags: eclipse-project
13:42
add mkdir to the unicode-supported functions add chinese-named file and directory in test directory, demonstrating the fix [01a2f3a346] check-in: c780793749 user: jan.nijtmans tags: ticket-01a2f3a346
13:15
Better support for unicode filenames on Win32 (Not tested on other platforms yet, will not work!) [01a2f3a346] check-in: d8e1431fc0 user: jan.nijtmans tags: ticket-01a2f3a346
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/file.c.

420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
  if( rc==2 ){
    if( !forceFlag ) return 1;
    file_delete(zName);
  }
  if( rc!=1 ){
#if defined(_WIN32)
    int rc;
    char *zMbcs = fossil_utf8_to_mbcs(zName);
    rc = mkdir(zMbcs);
    fossil_mbcs_free(zMbcs);
    return rc;
#else
    return mkdir(zName, 0755);
#endif
  }
  return 0;







|
|







420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
  if( rc==2 ){
    if( !forceFlag ) return 1;
    file_delete(zName);
  }
  if( rc!=1 ){
#if defined(_WIN32)
    int rc;
    wchar_t *zMbcs = fossil_utf8_to_unicode(zName);
    rc = _wmkdir(zMbcs);
    fossil_mbcs_free(zMbcs);
    return rc;
#else
    return mkdir(zName, 0755);
#endif
  }
  return 0;

Added test/世界/界世.txt.



>
1
Just some text