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

problems with encodings #10

Open
vsespb opened this issue Oct 16, 2012 · 5 comments
Open

problems with encodings #10

vsespb opened this issue Oct 16, 2012 · 5 comments

Comments

@vsespb
Copy link

vsespb commented Oct 16, 2012

  1. I had crashes at this line
message = message.gsub(/^/, @@line_prefix) if @@verbose

because @@line_prefix was in 'UTF-8' and message was in 'US-ASCII'

only ruby 1.9.3.p0 affected - 1.9.3.p194 is OK.

I was able to fix it by adding something like

message.force_encoding("BINARY") if message.respond_to?(:force_encoding) && message.encoding.name != 'UTF-8'

before

message = message.gsub(/^/, @@line_prefix) if @@verbose
@@verbose = Rails.env == "development"

are you sure that checking rails env name in gem is a good idea ? It was pretty hard for me to find why I have two identical environments with same settings and only one of them is crashing.

@pauldowman
Copy link
Owner

Thanks. I'll check it out as soon as I can.

@dmitry
Copy link

dmitry commented Apr 23, 2014

@pauldowman any news on that? Or may be you can suggest some other gem with the similar functionality?

@pauldowman
Copy link
Owner

@dmitry Sorry for the slow reply. I'm forced to admit that I don't have time at the moment. I've recently stopped using this myself but if anyone wants to take over maintenance I'd be happy to give the project away and do what I can to help.

@dmitry
Copy link

dmitry commented May 21, 2014

@pauldowman if you don't mind, you can add myself to the git maintainers, I will try to support it as far as I will have some free time.

@pauldowman
Copy link
Owner

@dmitry How about you fork it, and I'll update my README pointing people to your fork?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants