Fossil SCM

Convert the results of getenv() from MBCS into UTF8.

drh 2011-05-03 20:25 windows-i18n
Commit b7df0b9ce6d707f00766b8695b04f8cae9e106c8
1 file changed +1
+1
--- src/db.c
+++ src/db.c
@@ -682,10 +682,11 @@
682682
}
683683
if( zHome==0 ){
684684
fossil_fatal("cannot locate home directory - "
685685
"please set the HOMEPATH environment variable");
686686
}
687
+ zHome = fossil_mbcs_to_utf8(zHome);
687688
#else
688689
zHome = getenv("HOME");
689690
if( zHome==0 ){
690691
fossil_fatal("cannot locate home directory - "
691692
"please set the HOME environment variable");
692693
--- src/db.c
+++ src/db.c
@@ -682,10 +682,11 @@
682 }
683 if( zHome==0 ){
684 fossil_fatal("cannot locate home directory - "
685 "please set the HOMEPATH environment variable");
686 }
 
687 #else
688 zHome = getenv("HOME");
689 if( zHome==0 ){
690 fossil_fatal("cannot locate home directory - "
691 "please set the HOME environment variable");
692
--- src/db.c
+++ src/db.c
@@ -682,10 +682,11 @@
682 }
683 if( zHome==0 ){
684 fossil_fatal("cannot locate home directory - "
685 "please set the HOMEPATH environment variable");
686 }
687 zHome = fossil_mbcs_to_utf8(zHome);
688 #else
689 zHome = getenv("HOME");
690 if( zHome==0 ){
691 fossil_fatal("cannot locate home directory - "
692 "please set the HOME environment variable");
693

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button