Fossil SCM

Fix typo in the new fossil_getenv() function for windows.

drh 2012-02-16 03:15 trunk
Commit 6c835ea8c7c615fe97ed02f800d3249d9e6d547c
1 file changed +1 -1
+1 -1
--- src/file.c
+++ src/file.c
@@ -968,11 +968,11 @@
968968
** Return the value of an environment variable as UTF8.
969969
*/
970970
char *fossil_getenv(const char *zName){
971971
char *zValue = getenv(zName);
972972
#ifdef _WIN32
973
- if( zValue ) zValue = fossil_msbc_to_utf8(zValue);
973
+ if( zValue ) zValue = fossil_mbcs_to_utf8(zValue);
974974
#endif
975975
return zValue;
976976
}
977977
978978
/*
979979
--- src/file.c
+++ src/file.c
@@ -968,11 +968,11 @@
968 ** Return the value of an environment variable as UTF8.
969 */
970 char *fossil_getenv(const char *zName){
971 char *zValue = getenv(zName);
972 #ifdef _WIN32
973 if( zValue ) zValue = fossil_msbc_to_utf8(zValue);
974 #endif
975 return zValue;
976 }
977
978 /*
979
--- src/file.c
+++ src/file.c
@@ -968,11 +968,11 @@
968 ** Return the value of an environment variable as UTF8.
969 */
970 char *fossil_getenv(const char *zName){
971 char *zValue = getenv(zName);
972 #ifdef _WIN32
973 if( zValue ) zValue = fossil_mbcs_to_utf8(zValue);
974 #endif
975 return zValue;
976 }
977
978 /*
979

Keyboard Shortcuts

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