-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it doesn't accept non-ascii characters in file path #150
Comments
What is the path, what OS are you on and what ruby version are you running? |
I have tested on Linux and Mac OS with ruby 1.9.2-p290. The path which the error ocurred were |
I confirm this issue. I did replicate it on my Mac. Simply create a dir and name it with special characters (such as a simple ç for example). Inside, create a basic structure for Cucumber (add a feature to /features and it's step definitions to /features/step_definitions/). All that can be done in english. Now, when you run "cucumber" in a shell, the error will pop up and the task is going to be aborted. |
The error occurs when I add a single step definition. |
I'm also having the same problem. ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] The error Within the directory Hello have: The file greeter_spec.rb Who find a solution be sure to alert. |
I found out what the problem really is encoding, but not in the file but in path file. I have the stack the problem that the "Área de Trabalho" was to be "desktop", but "desktop" in Portuguese is "Área de Trabalho". To resolve or change to a directory without special characters or places that force_encoding ('utf-8') cucumber developers could solve this problem. |
@edivandecastro you could be a Cucumber developer! Send us a (tested) pull request with the fix and I'll merge it in. |
I love m17n! Proc.to_s returns string in ASCII-8BIT encoding even if path has unicode characters. But Dir.pwd returns utf-8 string and String#index can not work with it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
If I put features in a directory that contains utf-8 characters in the name, when I run cucumber I get the following error:
The text was updated successfully, but these errors were encountered: