#undef check /* stupid Apple and their un-namespaced, generic Carbon macros */
#endif
-#include <glibmm/convert.h>
#include <glibmm/fileutils.h>
#include <glibmm/miscutils.h>
string
ARDOUR::translation_enable_path ()
{
- return Glib::build_filename (user_config_directory(), ".translate");
+ return Glib::build_filename (user_config_directory(), ".translate");
}
bool
ARDOUR::translations_are_enabled ()
{
- int fd = ::open (Glib::locale_from_utf8 (ARDOUR::translation_enable_path()).c_str(), O_RDONLY);
+ int fd = ::open (ARDOUR::translation_enable_path().c_str(), O_RDONLY);
if (fd < 0) {
return translate_by_default;
ARDOUR::set_translations_enabled (bool yn)
{
string i18n_enabler = ARDOUR::translation_enable_path();
- int fd = ::open (Glib::locale_from_utf8 (i18n_enabler).c_str(), O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ int fd = ::open (i18n_enabler.c_str(), O_WRONLY|O_CREAT|O_TRUNC, 0644);
if (fd < 0) {
return false;
#include <errno.h>
#include <regex.h>
-#include <glibmm/convert.h>
#include <glibmm/miscutils.h>
#include <glibmm/fileutils.h>
int
ARDOUR::touch_file (string path)
{
- int fd = open (Glib::locale_from_utf8 (path).c_str(), O_RDWR|O_CREAT, 0660);
+ int fd = open (path.c_str(), O_RDWR|O_CREAT, 0660);
if (fd >= 0) {
close (fd);
return 0;