Fossil

Check-in [b7df0b9ce6]
Login

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

Overview
Comment:Convert the results of getenv() from MBCS into UTF8.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | windows-i18n
Files: files | file ages | folders
SHA1: b7df0b9ce6d707f00766b8695b04f8cae9e106c8
User & Date: drh 2011-05-03 20:25:03.002
References
2011-05-03
21:55 Ticket [8d916f5fc3] Issues with branch windows-i18n status still Open with 1 other change artifact: 47df355410 user: anonymous
Context
2011-05-04
11:13
Add a wrapper around all calls to access() that translates UTF8 to MBCS. check-in: 850d3df44e user: drh tags: windows-i18n
2011-05-03
20:25
Convert the results of getenv() from MBCS into UTF8. check-in: b7df0b9ce6 user: drh tags: windows-i18n
18:32
Convert filenames from UTF8 to MBCS on windows when checking if a file exists or checking its size, etc. Ticket [336924579dd95e7cceaeeae5]. check-in: 48f5dadafd user: drh tags: windows-i18n
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
680
681
682
683
684
685
686

687
688
689
690
691
692
693
      zHome = getenv("HOMEPATH");
    }
  }
  if( zHome==0 ){
    fossil_fatal("cannot locate home directory - "
                "please set the HOMEPATH environment variable");
  }

#else
  zHome = getenv("HOME");
  if( zHome==0 ){
    fossil_fatal("cannot locate home directory - "
                 "please set the HOME environment variable");
  }
#endif







>







680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
      zHome = getenv("HOMEPATH");
    }
  }
  if( zHome==0 ){
    fossil_fatal("cannot locate home directory - "
                "please set the HOMEPATH environment variable");
  }
  zHome = fossil_mbcs_to_utf8(zHome);
#else
  zHome = getenv("HOME");
  if( zHome==0 ){
    fossil_fatal("cannot locate home directory - "
                 "please set the HOME environment variable");
  }
#endif