Skip to content
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

Crashing when run #25

Closed
jkmassel opened this issue Feb 4, 2014 · 7 comments
Closed

Crashing when run #25

jkmassel opened this issue Feb 4, 2014 · 7 comments
Labels

Comments

@jkmassel
Copy link

jkmassel commented Feb 4, 2014

/Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:41:in strip!': invalid byte sequence in UTF-8 (ArgumentError) from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:41:inparse_dotstrings_line'
from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:33:in block (2 levels) in load_strings' from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:32:ineach_line'
from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:32:in block in load_strings' from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:31:inopen'
from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:31:in load_strings' from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:59:inblock in dotstrings_to_csv'
from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:57:in each' from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/strings2csv.rb:57:indotstrings_to_csv'
from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/lib/csvconverter/commands/strings2csv_command.rb:19:in strings2csv' from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:inrun'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in invoke_command' from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:indispatch'
from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in start' from /Library/Ruby/Gems/2.0.0/gems/csv2strings-0.2.3/bin/strings2csv:6:in<top (required)>'
from /usr/bin/strings2csv:23:in load' from /usr/bin/strings2csv:23:in

'

@netbe
Copy link
Owner

netbe commented Feb 4, 2014

Hi @jkmassel,

is your .strings file in another encoding other than UTF8? If so try to convert it first.

@jkmassel
Copy link
Author

jkmassel commented Feb 4, 2014

Hi @netbe, the file is UTF-16 (it was created with the genstrings command-line utility).

Is that not a recommended use case for this app?

@netbe
Copy link
Owner

netbe commented Feb 4, 2014

@jkmassel yep you're right. To be honest I rarely use this direction of the script strings to csv, most of the time in the other direction.

I will have to fix this at some point... Could you give me by any chance the sample file that makes the script crash?

@jkmassel
Copy link
Author

jkmassel commented Feb 4, 2014

For sure - is there an email or something I can send it to? Rather not post publicly since it's client work

@netbe
Copy link
Owner

netbe commented Feb 5, 2014

@jkmassel send it to be-net[at]wanadoo[dot]fr
i will have a look

@jkmassel
Copy link
Author

jkmassel commented Feb 5, 2014

Awesome! Sent.

netbe pushed a commit that referenced this issue Feb 10, 2014
netbe pushed a commit that referenced this issue Feb 10, 2014
netbe added a commit that referenced this issue Mar 3, 2014
This reverts commit 4e1d5ed.
netbe added a commit that referenced this issue Mar 3, 2014
@netbe
Copy link
Owner

netbe commented Mar 12, 2014

@jkmassel ok fixed the issue (not as I wanted) but works with 1.9.2+. Give it a try and let me know if any (other) issues

@netbe netbe closed this as completed Mar 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants