Range or index out of bounds #4

Open
castus opened this Issue Feb 15, 2013 · 4 comments

Comments

Projects
None yet
4 participants

castus commented Feb 15, 2013

Hi,

It seems not working in my project (or iOS?). I testing in iOS 5 and get this error:

Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString substringWithRange:]: Range or index out of bounds'

Locale is setted as @"pl_PL" and file hyph_pl_PL.dict is added into bundle.

Please help.

nastyj commented Jul 12, 2013

Castus, Did you ever figure out what is going on? In my project when I change my locale to JP (Japan) I also get the exact same error.

castus commented Jul 19, 2013

Unfortunately no, sorry. I didn't use it in my project at all.

brovador commented Sep 2, 2013

Same in spanish

jlampa commented Apr 28, 2014

Try replacing this:

wordLength = strlen(tokenChars);

with this:

wordLength = tokenRange.length;

in NSString+Hyphenate.m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment