#include <cerrno>
-
-namespace lyx {
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#endif
using boost::scoped_array;
-using support::os::internal_path;
using std::string;
+namespace lyx {
+namespace support {
+
namespace {
inline
// Returns current working directory
-string const lyx::support::getcwd()
+FileName const getcwd()
{
int n = 256; // Assume path is less than 256 chars
char * err;
string result;
if (err)
result = tbuf.get();
- return internal_path(result);
+ return FileName::fromFilesystemEncoding(os::internal_path(result));
}
-
+} // namespace support
} // namespace lyx