[recipes] Skip non-ascii whitespace too
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Skip non-ascii whitespace too
- Date: Mon, 2 Jan 2017 19:18:22 +0000 (UTC)
commit 006efc0d4f6a8dff68a88682bd31765f781bc419
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 2 14:16:43 2017 -0500
Skip non-ascii whitespace too
This was showing up as a failure to parse mixed numbers that
we've formatted ourselves (!), because we use a thin space there.
src/gr-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-utils.c b/src/gr-utils.c
index 2c0cd5d..f4ef27f 100644
--- a/src/gr-utils.c
+++ b/src/gr-utils.c
@@ -294,8 +294,8 @@ skip_whitespace (char **input)
{
char *in = *input;
- while (*input && g_ascii_isspace (**input)) {
- *input += 1;
+ while (*input && g_unichar_isspace (g_utf8_get_char (*input))) {
+ *input = g_utf8_next_char (*input);
}
return in != *input;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]