Skip to content

Commit

Permalink
Enforce encoding.
Browse files Browse the repository at this point in the history
This fixes issues in Ruby 2.0.0, such as:

 2) Failure:
test_encode_length(ASN1_Test) [test/test_ber.rb:190]:
<"\x81\x80"> (UTF-8) expected but was
<"\x81\x80"> (ASCII-8BIT).
  • Loading branch information
voxik committed Mar 12, 2013
1 parent 60f8134 commit d07754b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/snmp/ber.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# encoding: ascii-8bit
#
# Copyright (c) 2004 David R. Halliday
# All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions test/test_ber.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: ascii-8bit

require 'test/unit'
require 'snmp/varbind'
require 'snmp/ber'
Expand Down

0 comments on commit d07754b

Please sign in to comment.