diff options
author | Dan Winship <danw@gnome.org> | 2013-05-20 17:54:48 -0300 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-05-21 11:23:22 -0300 |
commit | 4b94c0831e449374ce769cb4938a28b3dca59a43 (patch) | |
tree | 28f53ec4bc4bd8e224e9747e90f87f9308a119bc /gmodule | |
parent | 52f6a7d16250d2b180c83cce8929f3e14972e1a9 (diff) |
Use 'dumb quotes' rather than `really dumb quotes'
Back in the far-off twentieth century, it was normal on unix
workstations for U+0060 GRAVE ACCENT to be drawn as "‛" and for U+0027
APOSTROPHE to be drawn as "’". This led to the convention of using
them as poor-man's ‛smart quotes’ in ASCII-only text.
However, "'" is now universally drawn as a vertical line, and "`" at a
45-degree angle, making them an `odd couple' when used together.
Unfortunately, there are lots of very old strings in glib, and also
lots of new strings in which people have kept up the old tradition,
perhaps entirely unaware that it used to not look stupid.
Fix this by just using 'dumb quotes' everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=700746
Diffstat (limited to 'gmodule')
-rw-r--r-- | gmodule/gmodule-beos.c | 2 | ||||
-rw-r--r-- | gmodule/gmodule-win32.c | 2 | ||||
-rw-r--r-- | gmodule/gmodule.c | 2 | ||||
-rw-r--r-- | gmodule/gmodule.h | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/gmodule/gmodule-beos.c b/gmodule/gmodule-beos.c index c54eed990..e2f2c0ba8 100644 --- a/gmodule/gmodule-beos.c +++ b/gmodule/gmodule-beos.c @@ -164,7 +164,7 @@ _g_module_symbol (gpointer handle, if (strcmp (name, "_end") == 0) { - msg = g_strdup_printf ("unmatched symbol name `%s'", symbol_name); + msg = g_strdup_printf ("unmatched symbol name '%s'", symbol_name); g_module_set_error (msg); g_free (msg); diff --git a/gmodule/gmodule-win32.c b/gmodule/gmodule-win32.c index 439fb5d0f..557250f8d 100644 --- a/gmodule/gmodule-win32.c +++ b/gmodule/gmodule-win32.c @@ -84,7 +84,7 @@ _g_module_open (const gchar *file_name, g_free (wfilename); if (!handle) - set_error ("`%s': ", file_name); + set_error ("'%s': ", file_name); return handle; } diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c index f3738339f..7fe7fa6c8 100644 --- a/gmodule/gmodule.c +++ b/gmodule/gmodule.c @@ -852,7 +852,7 @@ g_module_symbol (GModule *module, { gchar *error; - error = g_strconcat ("`", symbol_name, "': ", module_error, NULL); + error = g_strconcat ("'", symbol_name, "': ", module_error, NULL); g_module_set_error (error); g_free (error); *symbol = NULL; diff --git a/gmodule/gmodule.h b/gmodule/gmodule.h index caa0680c8..cb9b119fc 100644 --- a/gmodule/gmodule.h +++ b/gmodule/gmodule.h @@ -56,7 +56,7 @@ typedef void (*GModuleUnload) (GModule *module); GLIB_AVAILABLE_IN_ALL gboolean g_module_supported (void) G_GNUC_CONST; -/* open a module `file_name' and return handle, which is NULL on error */ +/* open a module 'file_name' and return handle, which is NULL on error */ GLIB_AVAILABLE_IN_ALL GModule* g_module_open (const gchar *file_name, GModuleFlags flags); @@ -73,7 +73,7 @@ void g_module_make_resident (GModule *module); GLIB_AVAILABLE_IN_ALL const gchar * g_module_error (void); -/* retrieve a symbol pointer from `module', returns TRUE on success */ +/* retrieve a symbol pointer from 'module', returns TRUE on success */ GLIB_AVAILABLE_IN_ALL gboolean g_module_symbol (GModule *module, const gchar *symbol_name, @@ -83,13 +83,13 @@ gboolean g_module_symbol (GModule *module, GLIB_AVAILABLE_IN_ALL const gchar * g_module_name (GModule *module); -/* Build the actual file name containing a module. `directory' is the +/* Build the actual file name containing a module. 'directory' is the * directory where the module file is supposed to be, or NULL or empty * in which case it should either be in the current directory or, on * some operating systems, in some standard place, for instance on the * PATH. Hence, to be absoultely sure to get the correct module, * always pass in a directory. The file name consists of the directory, - * if supplied, and `module_name' suitably decorated according to + * if supplied, and 'module_name' suitably decorated according to * the operating system's conventions (for instance lib*.so or *.dll). * * No checks are made that the file exists, or is of correct type. |