[balsa] Handle 8-bit characters
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Handle 8-bit characters
- Date: Mon, 7 Sep 2009 21:59:52 +0000 (UTC)
commit e5c4743058820b5900bb8bb6bc9976330edc6b48
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Sep 7 17:54:51 2009 -0400
Handle 8-bit characters
ChangeLog | 4 ++++
libbalsa/misc.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9dd93a9..aa60a34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-09-07 Peter Bloomfield
+ * libbalsa/misc.c (libbalsa_urlencode): handle 8-bit characters.
+
+2009-09-07 Peter Bloomfield
+
* libbalsa/libbalsa-conf.c (lbc_init): do not read config file
twice.
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index ae7a76a..26f1f0d 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -152,8 +152,8 @@ libbalsa_urlencode(const gchar* str)
} else if (!isalnum(*x) && strchr("_-.", *x) == NULL) {
/* Allow only alnum chars and '_', '-', '.'; escape the rest */
*x++ = '%';
- *x++ = hexchars[*str >> 4];
- *x = hexchars[*str & 0x0F];
+ *x++ = hexchars[(*str >> 4) & 0x0F];
+ *x = hexchars[(*str) & 0x0F];
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]