mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Add patch to work correctly with ruby19
PR: ports/177883 Submitted by: Rainer Duffner <rainer@ultra-secure.de> Obtained from: https://github.com/ruby-ldap/ruby-net-ldap/pull/41/files (upstream)
This commit is contained in:
parent
1d7185ca93
commit
53220b9083
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319278
@ -1,12 +1,9 @@
|
||||
# New ports collection makefile for: rubygem-net-ldap
|
||||
# Date created: 2010-05-13
|
||||
# Whom: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
|
||||
#
|
||||
# Whom: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= net-ldap
|
||||
PORTVERSION= 0.3.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net rubygems
|
||||
MASTER_SITES= RG
|
||||
|
||||
|
15
net/rubygem-net-ldap/files/patch-ruby19
Normal file
15
net/rubygem-net-ldap/files/patch-ruby19
Normal file
@ -0,0 +1,15 @@
|
||||
--- lib/net/ber/core_ext/string.rb
|
||||
+++ lib/net/ber/core_ext/string.rb
|
||||
@@ -20,7 +20,11 @@ def raw_utf8_encoded
|
||||
if self.respond_to?(:encode)
|
||||
# Strings should be UTF-8 encoded according to LDAP.
|
||||
# However, the BER code is not necessarily valid UTF-8
|
||||
- self.encode('UTF-8').force_encoding('ASCII-8BIT')
|
||||
+ begin
|
||||
+ self.encode('UTF-8').force_encoding('ASCII-8BIT')
|
||||
+ rescue Encoding::UndefinedConversionError
|
||||
+ self
|
||||
+ end
|
||||
else
|
||||
self
|
||||
end
|
Loading…
Reference in New Issue
Block a user