GAMS-dev / studio

GAMS Studio
https://www.gams.com/latest/docs/T_STUDIO.html
GNU General Public License v3.0
36 stars 5 forks source link

Umlauts in Path -> GDX Open broken #134

Closed universal closed 6 years ago

universal commented 6 years ago

On trying to open a GDX file, where the parent directory contains an umlaut results in the following error:

Unable to open GDX file: /home/XXX/development/repositories/GAMS/XXXIntensitätsstufen_Düngeraufkommen_XXX/tmp/3aggregate.gdx
Error: Ungültiges oder unvollständiges Multi-Byte- oder Wide-Zeichen

Symlinking the directory to a path without an umlaut, the gdx file can be opened and viewed just fine.

Environment: Ubuntu 18.04, GAMS - 25.1.1, ntfs formatted drive

On an unrelated side note: This reminded me: Whenever i try to run gams from the command line and the path contains a space, gams does not want to execute the file :( And I've to symlink the directory, from where it works just fine...

MrMontag commented 6 years ago

The umlaut issue occurs on all platforms (Linux, macOS, Windows) and on macOS/Windows umlauts are also not correctly displayed in the output log.

On an unrelated side note: This reminded me: Whenever i try to run gams from the command line and the path contains a space, gams does not want to execute the file :( And I've to symlink the directory, from where it works just fine...

Currently this is a legacy of GAMS on Linux and macOS. If GAMS is used on Windows spaces in paths should just work fine.

MrMontag commented 6 years ago

The umlaut issue has been fixed, which will be part of the upcoming GAMS Studio 0.9.3.

For the path with spaces a new ticket has been created (#166).