[tepl] Utils: str truncate: add comment
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] Utils: str truncate: add comment
- Date: Mon, 18 Nov 2019 07:51:50 +0000 (UTC)
commit 67d9c9032e6b1b77b54b8e218833a0fb5bfe2f46
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Nov 18 08:42:42 2019 +0100
Utils: str truncate: add comment
It's better to keep the real string for the delimiter as is with the
octal notation, because it's just ASCII and it'll work regardless of the
character encoding of the source file.
tepl/tepl-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tepl/tepl-utils.c b/tepl/tepl-utils.c
index 5e7705f..0a6cad9 100644
--- a/tepl/tepl-utils.c
+++ b/tepl/tepl-utils.c
@@ -45,7 +45,7 @@ str_truncate (const gchar *string,
guint num_left_chars;
guint right_offset;
guint delimiter_length;
- const gchar *delimiter = "\342\200\246";
+ const gchar *delimiter = "\342\200\246"; /* The character: … */
g_return_val_if_fail (string != NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]