Skip to content

Commit

Permalink
[ETL] current_working_directory() function now works correctly with n…
Browse files Browse the repository at this point in the history
…on-Latin filenames (synfig#2011)

(cherry picked from commit 94c0805)
  • Loading branch information
ice0 committed Feb 28, 2021
1 parent c11cbb8 commit 413b512
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ETL/ETL/_stringf.h
Expand Up @@ -38,6 +38,7 @@
#include <cstdarg>
#include <cstdlib>
#include <cstdio>
#include <glibmm/miscutils.h>

/* === M A C R O S ========================================================= */

Expand Down Expand Up @@ -240,12 +241,8 @@ unix_to_local_path(const std::string &path)
}

inline std::string
current_working_directory()
{
char dir[256];
// TODO: current_working_directory() should use Glib::locale_to_utf8()
std::string ret(getcwd(dir,sizeof(dir)));
return ret;
current_working_directory() {
return Glib::get_current_dir();
}

inline std::string
Expand Down

0 comments on commit 413b512

Please sign in to comment.