Skip to content

Russian not fixed completely #1

@DirectX

Description

@DirectX

NSString+Hyphenate.m
...
111: char const* tokenChars = [[token lowercaseString] UTF8String];
112: wordLength = strlen(tokenChars)]; // <-- Doubles length on multybyte words!
...

NSMakeRange(loc, wordLength - loc) below crashes due to
'*** -[NSCFString substringWithRange:]: Range or index out of bounds'.

Correcly: wordLength = [token length];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions