mirror of
https://github.com/vbatts/persistent-shell-history.git
synced 2024-11-22 07:35:38 +00:00
fixing encoding issues for newer ruby
This commit is contained in:
parent
5583bc8405
commit
106aead462
1 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
require 'gdbm'
|
require 'gdbm'
|
||||||
require 'yaml'
|
require 'yaml'
|
||||||
|
@ -7,6 +6,11 @@ require 'persistent-shell-history/abstract-history-store'
|
||||||
require 'persistent-shell-history/history'
|
require 'persistent-shell-history/history'
|
||||||
require 'persistent-shell-history/command'
|
require 'persistent-shell-history/command'
|
||||||
|
|
||||||
|
if RUBY_VERSION >= "1.9" # assuming you're running Ruby ~1.9
|
||||||
|
Encoding.default_external = Encoding::UTF_8
|
||||||
|
Encoding.default_internal = Encoding::UTF_8
|
||||||
|
end
|
||||||
|
|
||||||
module Persistent
|
module Persistent
|
||||||
module Shell
|
module Shell
|
||||||
class BinaryHistoryStore < AbstractHistoryStore
|
class BinaryHistoryStore < AbstractHistoryStore
|
||||||
|
|
Loading…
Reference in a new issue