diff libinterp/corefcn/debug.cc @ 25548:d6050ba12c0c

Call get_ASCII_filename for std::ifstream (bug #49118). * debug.cc, dlmread.cc, help.cc, load-save.cc, urlwrite.cc, ov-java.cc, fileinfo.cc, url-transfer.cc: Call get_ASCII_filename for filename argument of std::ifstream to circumvent the wide char WinAPI.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 03 Jul 2018 21:06:00 +0200
parents ef2b9d4abf4a
children ca413f326224
line wrap: on
line diff
--- a/libinterp/corefcn/debug.cc	Tue Jul 03 08:49:28 2018 -0700
+++ b/libinterp/corefcn/debug.cc	Tue Jul 03 21:06:00 2018 +0200
@@ -45,6 +45,7 @@
 #include "input.h"
 #include "interpreter-private.h"
 #include "interpreter.h"
+#include "lo-sysdep.h"
 #include "octave-preserve-stream-state.h"
 #include "ov-usr-fcn.h"
 #include "ov.h"
@@ -593,7 +594,7 @@
     os << "dbtype: unknown function " << name << "\n";
   else
     {
-      std::ifstream fs (ff.c_str (), std::ios::in);
+      std::ifstream fs (octave::sys::get_ASCII_filename (ff).c_str (), std::ios::in);
 
       if (! fs)
         os << "dbtype: unable to open '" << ff << "' for reading!\n";