1) Create a path with unicode characters (cyrillic, for example) under Windows, and a some file (with a some content! For example, "ABCDE"): C:\dev\слово\src\file.py 2) Open console and go to the C:\dev\слово\src\ folder. 3) Launch Geany from command line with the file name as the parameter: C:\your_installation_path\bin\geany.exe file.py 4) Geany opened an empty file instead of the file with the "ABCDE" content. In the log messages the path is "c:\dev\слово\src\file.py" instead of normal "C:\dev\слово\src\file.py"
5) But, if you launch geany with the full path to the file C:\your_installation_path\bin\geany.exe C:\dev\слово\src\file.py all will be ok. We can see the file content: "ABCDE" The log messages show the right file path: "c:\dev\слово\src\file.py"
So, geany can't detect default working dir under Windows. And you can't use geany in your workflow with unicode characters in paths.
Sounds related to #1095.
#1095 is unrelated. The problem was "introduced" in https://github.com/geany/geany/commit/f31899538d9cf548cecb8dcdd5fc2cb67893d8.... It's 12 years ago and I don't remember what exactly I tried to fix and why today it is rather broken than fixed.
There are good chances that this change fixes the problem here but might raise another problem in some other case. Non-ASCII filenames, Geany, Windows and me are a bad combination :(.
@WhatWhereWhyler could you please try: https://download.geany.org/snapshots/geany-1.38_setup-pr2660.exe (note that this means you will upgrade from 1.36 to 1.37.1 + this fix, if you have plugins installed, you need to upgrade these to 1.37 as well).
@WhatWhereWhyler please use https://download.geany.org/snapshots/geany-1.38_setup-pr2660-2.exe for testing. The previous test installer contained a fix which fixed only opening files with ASCII filenames but not filenames with non-ASCII characters.
github-comments@lists.geany.org