Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK+ file chooser dialog shows "Unknown" Modified times #2453

Closed
dunkfan opened this issue Mar 17, 2020 · 11 comments
Closed

GTK+ file chooser dialog shows "Unknown" Modified times #2453

dunkfan opened this issue Mar 17, 2020 · 11 comments
Labels
gtk i18n Internationalization (translations, localization, …) windows

Comments

@dunkfan
Copy link

dunkfan commented Mar 17, 2020

I've a feeling that this is due to some Windows 10 update
It is not possible to read the modification times in the File open window.
Every column entry for each file just says "Unknown"
This used to work fine in each Geany version, reinstalling older versions does not help.
I have an old portable app version 0.18. There it works.

@codebrainz
Copy link
Member

Just to be clear since the title says "file browser" and the description says "File open window", are you talking about the File Browser plugin, or just the normal Open File Dialog that opens when you use File->Open menu item, as if to open a new file?

For the latter, here it's working OK with 1.36 on Win 10 Pro (OS build 18363.720).

@dunkfan
Copy link
Author

dunkfan commented Mar 17, 2020 via email

@codebrainz codebrainz changed the title File browser shows "Unknown" Modified times GTK+ file chooser dialog shows "Unknown" Modified times Mar 17, 2020
@codebrainz
Copy link
Member

@dunkfan are you by any chance viewing a network or otherwise unusual path? Here I'm just testing with local hard drive (actually a virtual/VM hard drive).

@dunkfan
Copy link
Author

dunkfan commented Mar 17, 2020 via email

@codebrainz
Copy link
Member

I think I know what it is, it seems to be related to the language/locale, perhaps it's not matching your system locale, so GTK+ can't figure out how to format the date and just puts Unknown instead. Can you paste the first few lines of Help->Debug Messages?

I can reproduce if I set the LANG environment variable to C, but not when I use a proper locale like en_CA.utf8, en.utf8 or de.utf8 or the default. My Windows is set to English (United States) language/locale.

@codebrainz codebrainz added the i18n Internationalization (translations, localization, …) label Mar 17, 2020
@dunkfan
Copy link
Author

dunkfan commented Mar 17, 2020

16:30:30: Geany INFO : Geany 1.36, C
16:30:30: Geany INFO : GTK 2.24.32, GLib 2.60.6
16:30:30: Geany INFO : System data dir: C:\Program Files (x86)\Geany\data
16:30:30: Geany INFO : User config dir: C:\Users\mg\AppData\Roaming\geany
16:30:30: Geany INFO : System plugin path: C:\Program Files (x86)\Geany\lib\geany
16:30:30: Geany INFO : Added filetype Arduino (61).
16:30:30: Geany INFO : Added filetype Clojure (62).
16:30:30: Geany INFO : Added filetype CUDA (63).
16:30:30: Geany INFO : Added filetype Cython (64).
16:30:30: Geany INFO : Added filetype Genie (65).
16:30:30: Geany INFO : Added filetype Graphviz (66).
16:30:30: Geany INFO : Added filetype Groovy (67).
16:30:30: Geany INFO : Added filetype JSON (68).
16:30:30: Geany INFO : Added filetype Kotlin (69).
16:30:30: Geany INFO : Added filetype Nim (70).
16:30:30: Geany INFO : Added filetype Scala (71).
16:30:30: Geany INFO : Added filetype Swift (72).
16:30:30: Geany INFO : Added filetype TypeScript (73).
16:30:30: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation winhttp (GWinHttpVfs) for ‘gio-vfs’
16:30:30: Geany INFO : Loaded: C:\Program Files (x86)\Geany\lib\geany\filebrowser.dll (File Browser)
16:30:30: Geany INFO : Loaded: C:\Program Files (x86)\Geany\lib\geany\splitwindow.dll (Split Window)
16:30:30: Geany INFO : unknown : None (None)
16:30:40: Geany INFO : C:\Users\mg\Documents\IconSRC\head_41\gen\src\prg\scripts\tix\iconnmr\bruklib\Ez_Lib.tcl : Tcl (UTF-8)

@codebrainz
Copy link
Member

Yeah, you're using C (hardcoded/builtin) locale, I can reproduce it with that. Try to open a command prompt, change directory to C:\Program Files (x86)\Geany\bin and run set LANG=en (or whatever language you use/want) and press enter, and then type geany and press enter.

Is it possible when you installed Geany that you didn't install the localization files? I believe they are selected for installation by default.

@codebrainz
Copy link
Member

Also you can compare that same first line of Help->Debug Messages with the old portable version that is working, I expect you'll find that it's not using the C locale.

@dunkfan
Copy link
Author

dunkfan commented Mar 17, 2020

Cant check the old version right now, but yes the set LANG=en fixes it
Deselected nothing when installing, but always installing with Geany removing the last version itself.
Tried a complete fresh install too, but this fix will do the trick for me!
THANK YOU

@codebrainz
Copy link
Member

To make it permanent, you can edit the Geany shortcut Properties, and change the Target: to the following:

C:\Windows\System32\cmd.exe /c "SET LANG=en&& START /D ^"C:\Program Files (x86)\Geany\bin^" geany.exe"

You can change en in above with other language code if you like, of course.

@codebrainz
Copy link
Member

Closing since solution found and the issue is not Geany's fault, at most it's a GTK+ issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gtk i18n Internationalization (translations, localization, …) windows
Projects
None yet
Development

No branches or pull requests

2 participants