[goffice] GOFormat: fix UTF-8 problem with "mmmmm"
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] GOFormat: fix UTF-8 problem with "mmmmm"
- Date: Tue, 2 Jul 2019 12:33:03 +0000 (UTC)
commit 933a23b43f2fc618fdc3cb49ca006fb52f25c8ed
Author: Morten Welinder <terra gnome org>
Date: Tue Jul 2 08:32:30 2019 -0400
GOFormat: fix UTF-8 problem with "mmmmm"
ChangeLog | 5 +++++
NEWS | 1 +
goffice/utils/go-format.c | 2 +-
3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 11ce0673..d4c743e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-07-02 Morten Welinder <terra gnome org>
+
+ * goffice/utils/go-format.c (go_format_execute): Fix UTF-8 problem
+ with "mmmmm".
+
2019-06-27 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-axis.c: typo.
diff --git a/NEWS b/NEWS
index 9911b049..33c3980d 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Jean:
Morten:
* Add more functions to inspect formats.
+ * Fix UTF-8 problem with format "mmmmm".
--------------------------------------------------------------------------
goffice 0.10.45:
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index ae3effc5..1ecfb960 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -4014,7 +4014,7 @@ SUFFIX(go_format_execute) (PangoLayout *layout, GString *dst,
case OP_DATE_MONTH_NAME_1: {
char *s = go_date_month_name (month, TRUE);
- g_string_append_c (dst, *s);
+ g_string_append_unichar (dst, g_utf8_get_char (s));
g_free (s);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]