# Workaround a bug for octave-mode of Emacs 25.2.50 under MS-Windows

When I switched to the master branch of Emacs, I found that octave-mode doesn’t work correctly. The run-octave will result in the crash of “octave-gui.exe”, even without the configuration file. Afer hours of digging, I think the problem is related to the default-directory. That is, no matter what the PATH is, only when the default-directory being the directory of octave program can make it work. This may relate to the octave, but in Emacs 24.5 run-octave works correctly. Strang enough. I can workaround the problem by temporarily setting the default-directory. The code looks like: