# # patch "ChangeLog" # from [56e7350ae42dc82515c13edc9bb07e5275dbe53c] # to [d6e8452afbee68a21596c2a191f9e0d2d57c3ad1] # # patch "platform.hh" # from [b2b68efdf344078c3a266da9baa911c9e512a6c3] # to [172401a0e586b00a72d723da7f2ce41b6d89633a] # # patch "unix/fs.cc" # from [d3e7a538118693060b9b031fcb717f32cd5b7bc2] # to [634186c75555e7f8bf90e66fb114708f6573398a] # # patch "win32/fs.cc" # from [509e2c22115d934a7ab7bf128b742a92f0e4df94] # to [669575064c36c2e645252587a79b1957ddb4be9f] # ======================================================================== --- ChangeLog 56e7350ae42dc82515c13edc9bb07e5275dbe53c +++ ChangeLog d6e8452afbee68a21596c2a191f9e0d2d57c3ad1 @@ -1,5 +1,10 @@ 2005-08-25 Nathaniel Smith + * platform.hh (get_homedir): New function. + * {win32,unix}/fs.cc (get_homedir): Expose. + +2005-08-25 Nathaniel Smith + * Minor compile fixes. 2005-08-25 Nathaniel Smith ======================================================================== --- platform.hh b2b68efdf344078c3a266da9baa911c9e512a6c3 +++ platform.hh 172401a0e586b00a72d723da7f2ce41b6d89633a @@ -53,4 +53,5 @@ // calls N() if fails void change_current_working_dir(any_path const & to); utf8 tilde_expand(utf8 const & path); +utf8 get_homedir(); #endif // __PLATFORM_HH__ ======================================================================== --- unix/fs.cc d3e7a538118693060b9b031fcb717f32cd5b7bc2 +++ unix/fs.cc 634186c75555e7f8bf90e66fb114708f6573398a @@ -32,7 +32,7 @@ // FIXME: BUG: this probably mangles character sets // (as in, we're treating system-provided data as utf8, but it's probably in // the filesystem charset) -static utf8 +utf8 get_homedir() { char * home = getenv("HOME"); ======================================================================== --- win32/fs.cc 509e2c22115d934a7ab7bf128b742a92f0e4df94 +++ win32/fs.cc 669575064c36c2e645252587a79b1957ddb4be9f @@ -30,7 +30,7 @@ // FIXME: BUG: this probably mangles character sets // (as in, we're treating system-provided data as utf8, but it's probably in // the filesystem charset) -static utf8 +utf8 get_homedir() { // Windows is fun!