celogeek/MooX-Options — pull request #21 by Hugmeir (2014-08-18 22:25:10+00:00)
Title: Fall back to Text::LineFold if Text::WrapI18N is not available

The main reason for this change is that installing
Text::WrapI18N on some systems is impossible -- in
particular, Android's libc doesn't provide the functions
that the module needs to work.

Unfortunately, that renders MooX::Options entirely
inoperable. Fortunately, Text::LineFold does not
suffer from this limitation and, as a bonus for UTF-8
encoded text, it usually wraps more accurately than
Text::WrapI18N, since it is really just a thin wrapper
around Unicode::LineBreak.

As an addendum to the commit message: Text::WrapI18N's last release was 11 years ago; Text::LineFold's was on June. So I think an argument could be made for switching entirely to LineFold, but that's outside the scope of this pull request.