[Github-comments] [geany] Improve spawn module error messages (#541)

zhekov notifications at xxxxx
Fri Oct 9 16:50:19 UTC 2015


The spawn calls display nothing, of course, they only return a GError (and even know nothing about gtk+, only glib is used).

Since I haven't seen any internally used win~1 functions except CreateProcess (== exec) to produce any errors, removing the function name, except when compiling the test program, seems acceptable to me.

One unpleasant problem is that, if the command line can not be parsed properly, glib often includes it's text in the GError message, along with the translated error description. If the command line is in locale, it won't be displayed properly (Help -> Debug Messages will even terminate Geany with an assertion, as in PR #658). But the (entire) message can not be converted to utf-8 by the caller, because the translated text will break.

Maybe I should refrain from mimicking this glib behavior under win~1, and even replace the offending glib messages under *nix? It's possible, based on their GError codes.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/541#issuecomment-146928217
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151009/9dc8b1a7/attachment.html>


More information about the Github-comments mailing list