sabrams/cucumber-jvm — comment on commit e359d0461bf2a46cf383c5e168cc90897add4ca4
File:  line 0
By sabrams:

Thanks, I noticed that. It turns out that when the Python files are loaded,
there is an issue with the i18N names that are not Ascii. While you can
specify the encoding of a Python file at the top of the file (I use utf-8
of course, based on the Groovy output), it appears to only apply to String
values, not class or variable names. As far as I can tell class names are
limited to at least the Ascii subset. I've been looking through the Jython
Backend code to come up with a way to support Given/When/Then/Etc. May need
to use a dictionary to look-up these words, but still investigating.

Once I figure that part out, I will add the import call to the step defs.

Steve

On Fri, Jan 27, 2012 at 4:38 PM, Aslak Hellesy <
reply@reply.github.com
> wrote:

> Looks nice. It would be nice if each stepdef script could import the DSL
> like this:
>
> ```python
> import cucumber.runtime.jython.EN
>
> @Given('I have (\d+) "(.+)" in my belly')
> def something_in_the_belly(self, n, what):
> self.n = int(n)
> self.what = what
>
> ```
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/sabrams/cucumber-jvm/commit/e359d0461bf2a46cf383c5e168cc90897add4ca4#commitcomment-909826
>