gherkin 1.0.17-i386-mswin32 → 1.0.18-i386-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.18 (2010-04-21)
2
+
3
+ === Bugfixes
4
+ * Explicitly use UTF-8 encoding when scanning source with Java lexer. (Aslak Hellesøy)
5
+
1
6
  == 1.0.17 (2010-04-19)
2
7
 
3
8
  === Bugfixes
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 1
3
3
  :minor: 0
4
4
  :build:
5
- :patch: 17
5
+ :patch: 18
@@ -1,5 +1,6 @@
1
1
  package gherkin.lexer;
2
2
 
3
+ import java.io.UnsupportedEncodingException;
3
4
  import java.util.List;
4
5
  import java.util.ArrayList;
5
6
  import java.util.regex.Pattern;
@@ -142,7 +143,12 @@ public class <%= @i18n.underscored_iso_code.upcase %> implements Lexer {
142
143
 
143
144
  public void scan(CharSequence inputSequence) {
144
145
  String input = inputSequence.toString() + "\n%_FEATURE_END_%";
145
- byte[] data = input.getBytes();
146
+ byte[] data = null;
147
+ try {
148
+ data = input.getBytes("UTF-8");
149
+ } catch(UnsupportedEncodingException e) {
150
+ throw new RuntimeException(e);
151
+ }
146
152
  int cs, p = 0, pe = data.length;
147
153
  int eof = pe;
148
154
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 17
9
- version: 1.0.17
8
+ - 18
9
+ version: 1.0.18
10
10
  platform: i386-mswin32
11
11
  authors:
12
12
  - Mike Sassak
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-20 00:00:00 +02:00
19
+ date: 2010-04-21 00:00:00 +02:00
20
20
  default_executable: gherkin
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency