Fix UTF-8
This commit is contained in:
@@ -23,6 +23,9 @@ require File.expand_path('../gollum/sanitization', __FILE__)
|
|||||||
require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
|
require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
|
||||||
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
||||||
|
|
||||||
|
# Set ruby to UTF-8 mode
|
||||||
|
$KCODE = 'U'
|
||||||
|
|
||||||
module Gollum
|
module Gollum
|
||||||
VERSION = '2.4.1'
|
VERSION = '2.4.1'
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ context "Frontend" do
|
|||||||
assert_equal 'm-plus-f', 'μ†ℱ'.to_url
|
assert_equal 'm-plus-f', 'μ†ℱ'.to_url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test 'utf-8 kcode' do
|
||||||
|
assert_equal 'μ†ℱ'.scan(/./), ["μ", "†", "ℱ"]
|
||||||
|
end
|
||||||
|
|
||||||
test "retain edit information" do
|
test "retain edit information" do
|
||||||
page1 = 'page1'
|
page1 = 'page1'
|
||||||
user1 = 'user1'
|
user1 = 'user1'
|
||||||
|
|||||||
Reference in New Issue
Block a user