bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 34 forks source link

Prevent SyntaxError raised under Ruby 2.0.0 by line 107 regex #18

Closed afbroman closed 11 years ago

afbroman commented 11 years ago

Under Ruby 2.0.0, one of the regexes on line 107 (/[\x00-\x1f\x7f-\xff]/) is raising a SyntaxError: invalid multibyte escape.

Resolve issue by explicitly setting the encoding to ASCII.

ghost commented 11 years ago

nice solution for now, thx :+1: