SF.net SVN: geany:[3263] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Nov 21 15:42:26 UTC 2008
Revision: 3263
http://geany.svn.sourceforge.net/geany/?rev=3263&view=rev
Author: eht16
Date: 2008-11-21 15:42:26 +0000 (Fri, 21 Nov 2008)
Log Message:
-----------
Try to fix some problems when opening files with non-Ascii characters on Windows from the command line.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-11-21 14:35:57 UTC (rev 3262)
+++ trunk/ChangeLog 2008-11-21 15:42:26 UTC (rev 3263)
@@ -1,3 +1,10 @@
+2008-11-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/main.c:
+ Try to fix some problems when opening files with non-Ascii characters
+ on Windows from the command line.
+
+
2008-11-21 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/symbols.c:
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2008-11-21 14:35:57 UTC (rev 3262)
+++ trunk/src/main.c 2008-11-21 15:42:26 UTC (rev 3263)
@@ -774,7 +774,10 @@
for (i = 1; i < argc; i++)
{
gchar *filename = main_get_argv_filename(argv[i]);
-
+#ifdef G_OS_WIN32
+ /* It seems argv elements are encoded in CP1252 on a German Windows */
+ setptr(filename, g_locale_to_utf8(filename, -1, NULL, NULL, NULL));
+#endif
if (filename && !main_handle_filename(filename))
{
const gchar *msg = _("Could not find file '%s'.");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list