10
0
Fork 0

added ruby file encoding utf-8 info, and changed apdu.rb to work with ruby 1.9 encoding (breaks 1.8 compatibility?)

This commit is contained in:
Kevin Redon 2013-01-22 15:29:32 +01:00
parent 81db0e7926
commit fd6db3b79e
12 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,3 +1,4 @@
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,3 +1,6 @@
# encoding: utf-8
# tested with ruby 1.9.1 and 1.9.3
# does not work with ruby 1.8.7 anymore
=begin
This file is part of softSIM.
@ -17,8 +20,10 @@ along with sofSIM. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info
=end
# this librarie is to centralise the APDU related work
$KCODE = 'UTF8'
require 'jcode'
# required by ruby 1.8, but brakes by 1.9
#$KCODE = 'UTF8'
#require 'jcode'
# transform binary string into readable hex string
class String

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,3 +1,4 @@
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,3 +1,4 @@
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,3 +1,4 @@
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
=begin
This file is part of softSIM.