Fossil SCM
Fix typo in the new fossil_getenv() function for windows.
Commit
6c835ea8c7c615fe97ed02f800d3249d9e6d547c
Parent
57152086b87f9ab…
1 file changed
+1
-1
+1
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -968,11 +968,11 @@ | ||
| 968 | 968 | ** Return the value of an environment variable as UTF8. |
| 969 | 969 | */ |
| 970 | 970 | char *fossil_getenv(const char *zName){ |
| 971 | 971 | char *zValue = getenv(zName); |
| 972 | 972 | #ifdef _WIN32 |
| 973 | - if( zValue ) zValue = fossil_msbc_to_utf8(zValue); | |
| 973 | + if( zValue ) zValue = fossil_mbcs_to_utf8(zValue); | |
| 974 | 974 | #endif |
| 975 | 975 | return zValue; |
| 976 | 976 | } |
| 977 | 977 | |
| 978 | 978 | /* |
| 979 | 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_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 |