Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix typo in the new fossil_getenv() function for windows. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
6c835ea8c7c615fe97ed02f800d3249d |
| User & Date: | drh 2012-02-16 03:15:49.527 |
Context
|
2012-02-16
| ||
| 20:12 | fixed /json/wiki/get to fail with a resource-not-found error if given the name of an unknown page. check-in: ac8c1ad4bb user: stephan tags: trunk | |
| 03:15 | Fix typo in the new fossil_getenv() function for windows. check-in: 6c835ea8c7 user: drh tags: trunk | |
| 01:03 | Always convert the result of getenv() into UTF8. check-in: 57152086b8 user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
966 967 968 969 970 971 972 |
/*
** Return the value of an environment variable as UTF8.
*/
char *fossil_getenv(const char *zName){
char *zValue = getenv(zName);
#ifdef _WIN32
| | | 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 |
/*
** Return the value of an environment variable as UTF8.
*/
char *fossil_getenv(const char *zName){
char *zValue = getenv(zName);
#ifdef _WIN32
if( zValue ) zValue = fossil_mbcs_to_utf8(zValue);
#endif
return zValue;
}
/*
** Translate UTF8 to MBCS for display on the console. Return a pointer to the
** translated text.. Call fossil_mbcs_free() to deallocate any memory
|
| ︙ | ︙ |