Fossil SCM
Convert the results of getenv() from MBCS into UTF8.
Commit
b7df0b9ce6d707f00766b8695b04f8cae9e106c8
Parent
48f5dadafd28a1e…
1 file changed
+1
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -682,10 +682,11 @@ | ||
| 682 | 682 | } |
| 683 | 683 | if( zHome==0 ){ |
| 684 | 684 | fossil_fatal("cannot locate home directory - " |
| 685 | 685 | "please set the HOMEPATH environment variable"); |
| 686 | 686 | } |
| 687 | + zHome = fossil_mbcs_to_utf8(zHome); | |
| 687 | 688 | #else |
| 688 | 689 | zHome = getenv("HOME"); |
| 689 | 690 | if( zHome==0 ){ |
| 690 | 691 | fossil_fatal("cannot locate home directory - " |
| 691 | 692 | "please set the HOME environment variable"); |
| 692 | 693 |
| --- 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 |