gherkin 1.0.17-java → 1.0.18-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: java
6
6
  authors:
7
7
  - Mike Sassak
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-04-20 00:00:00 +02:00
14
+ date: 2010-04-21 00:00:00 +02:00
15
15
  default_executable: gherkin
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency