[Rubyslim][Cyrillic/Non-ascii characters] [1 Attachment]

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Rubyslim][Cyrillic/Non-ascii characters] [1 Attachment]

FitNesse mailing list
Hi everyone,

I'm having trouble making Fitnesse work with non-ascii characters.

I'm using Fitnesse version 20160618 and Rubyslim version 0.1.1.

Attached (and also at [1]) you can see how the test table looks like. As
you can see, it works fine if I only have ascii letters both in the
table and returned from the system.

The fixture code is below:

<BEGIN FIXTURE CODE>

# encoding: utf-8

require 'open3'


module Fixtures

  class TranslationOf

    def initialize arg
        @arg = arg
    end

    def query
        [[["rid", "1"], ["name", "bargle"]]]
    end

  end
end

<END FIXTURE CODE>

If I replace "hargle" in the table with, say "харгл", and run the test,
Fitnesse would run forever, and, when I stop the test in the browser, it
prints the following message:

Could not complete testing:
fitnesse.testsystems.slim.SlimCommunicationException: Could not
send/receive data with SUT

If I replace "bargle" *in the fixture code* with "баргл", and run the
test, Fitnesse immediately will raise the following exception:

Could not complete testing: fitnesse.slim.protocol.SyntaxError:
java.lang.StringIndexOutOfBoundsException String index out of range: 333

Another observation: if, instead of a random Cyrillic word I return a
word with 'ä' (a Latin character a with umlaut sign) in the fixture, I
get a different error message:

Could not complete testing: fitnesse.slim.protocol.SyntaxError:
fitnesse.slim.protocol.SyntaxError Serialized list has no ending ]

Starting Fitnesse with 'java -Dfile.encoding=utf-8 -jar
fitnesse-standalone.jar' didn't help.

I've searched through the previous posts, but couldn't find a
solution... If this has already been asked and solved, I apologize.

I'd very much appreciate your help!

Best,

Ilnar

[1] https://imgur.com/a/2XCJX

--
GPG: 0xF3ED6A19

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Rubyslim][Cyrillic/Non-ascii characters]

FitNesse mailing list
1.  Try setting this Java environment variable option:
          JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8

 2.  Which implementation of rubyslim are you using?  UncleBob's or Lar Vonk's?
 

 3.  Which version of Ruby are you running?  1.9.x or 2.x?
 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Rubyslim][Cyrillic/Non-ascii characters]

FitNesse mailing list

Am 21.07.2017 um 20:54 schrieb [hidden email] [fitnesse]:

Hello,

thanks for a quick reply.
>  
>
> 1.  Try setting this Java environment variable option:
>           JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
>
>

Unfortunately this didn't help.

> 2.  Which implementation of rubyslim are you using?  UncleBob's or Lar
> Vonk's?

Uncle Bob's and Doug Bradbury's :) (rubyslim gem version 0.1.1. installed from rubygems.org)

>
> 3.  Which version of Ruby are you running?  1.9.x or 2.x?

2.3.3.p222.

Java used is openjdk version "1.8.0_131".

Not sure whether this is useful, but at [3] you can see the output of printenv command.

[3] https://paste2.org/ENwGmWXg

Best,

Ilnar

>
>

--
GPG: 0xF3ED6A19

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Rubyslim][Cyrillic/Non-ascii characters]

FitNesse mailing list
Hello again,

I've re-wrote that simple fixture in Java and it works just fine. Didn't even need to set the JAVA_TOOL_OPTIONS env. variable.

Best,

Ilnar

Am 21.07.2017 um 22:31 schrieb Ilnar Salimzianov:

>
> Am 21.07.2017 um 20:54 schrieb [hidden email] [fitnesse]:
>
> Hello,
>
> thanks for a quick reply.
> >  
> >
> > 1.  Try setting this Java environment variable option:
> >           JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
> >
> >
>
> Unfortunately this didn't help.
>
> > 2.  Which implementation of rubyslim are you using?  UncleBob's or Lar
> > Vonk's?
>
> Uncle Bob's and Doug Bradbury's :) (rubyslim gem version 0.1.1. installed from rubygems.org)
>
> >
> > 3.  Which version of Ruby are you running?  1.9.x or 2.x?
>
> 2.3.3.p222.
>
> Java used is openjdk version "1.8.0_131".
>
> Not sure whether this is useful, but at [3] you can see the output of printenv command.
>
> [3] https://paste2.org/ENwGmWXg
>
> Best,
>
> Ilnar
>
> >
> >
>

--
GPG: 0xF3ED6A19

Loading...