aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index e59dfc0e..07342436 100644
--- a/src/common.h
+++ b/src/common.h
@@ -226,8 +226,8 @@ void write_ignore(int fd, const void *buff, size_t count);
return retval; \
}
-/// Shorthand for wgettext call.
-#define _(wstr) wgettext(wstr)
+/// Shorthand for wgettext call in situations where a C-style string is needed (e.g., fwprintf()).
+#define _(wstr) wgettext(wstr).c_str()
/// Noop, used to tell xgettext that a string should be translated, even though it is not directly
/// sent to wgettext.