summaryrefslogtreecommitdiff
path: root/Cydia
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-05-20 02:01:38 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-05-20 02:01:58 -0700
commit393a84a16da1723e828bb4e9d82c6369ba98d0b1 (patch)
treec7c814c31a11f656c48f3462c85bad33abe48967 /Cydia
parentf14bba6943800576a00433dae4458f472b9aae7e (diff)
Fix regular expression subjects encoded in UTF-8.
Diffstat (limited to 'Cydia')
-rw-r--r--Cydia/MIMEAddress.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cydia/MIMEAddress.mm b/Cydia/MIMEAddress.mm
index e4dcbab..65f29ec 100644
--- a/Cydia/MIMEAddress.mm
+++ b/Cydia/MIMEAddress.mm
@@ -61,7 +61,7 @@
- (id) initWithString:(NSString *)string {
if ((self = [super init]) != nil) {
const char *data = [string UTF8String];
- size_t size = [string length];
+ size_t size = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
static Pcre address_r("^\"?(.*)\"? <([^>]*)>$");