Closed GoogleCodeExporter closed 8 years ago
Okay, reverting
http://github.com/rubyripperdev/rubyripper/commit/9eb44c04f95aeae8c74f7d8a569c6a
4c19fdb8b7
only helped with my branch.
Using latest git from today
(http://github.com/rubyripperdev/rubyripper/commit/c678c6d69d3d40c39d58ebcf0c8ab
1283ca46826)
I have to REVERT the following commits in order to install:
http://github.com/rubyripperdev/rubyripper/commit/cb2e249bf58d3b3a81dbb47092ba26
a718e11dae
http://github.com/rubyripperdev/rubyripper/commit/a5848a38cdd528944a679ed8aed612
d261971531
http://github.com/rubyripperdev/rubyripper/commit/9eb44c04f95aeae8c74f7d8a569c6a
4c19fdb8b7
This gets weird. There might be other problems in older language files that only
showed up with recent commits. Maybe some fuzzy messages?
I also checked all files with "isutf8" from "moreutils" and I could not find any
problems with UTF (execept the png file)
Another solution seems to be to delete the bulgarian translation (yes, there is
no
direct connection to these 3 commits, especially the russian language one..)
And finally, as a good workaround:
disabling update of po-files in the Makefile/configure:
cat configure | sed -e '/update_pofiles/d'
However, I am quite certain this has to be another ruby 1.9.1 or ruby-gettext
bug.
Having something to do with encoding/bytes/cyrillic chars.
I could fix it changing
/usr/lib/ruby/gems/1.9.1/gems/gettext-2.1.0/lib/gettext/tools.rb:73
to writing "content" to a file and reading it in right afterwards again
# update version and save merged data
testFile = File.new("testString.txt", "w")
testFile.write(content)
testFile.close()
testFile = File.open("testString.txt", "r")
content = testFile.read
testFile.close()
testFile = File.new("testString.txt", "w")
testFile.write(content)
testFile.close()
content.sub!(/(Project-Id-Version\:).*$/, "\\1 #{app_version}\\n\"")
File.open(defpo, "w") {|f|f.write(content)}
Original comment by goo...@JonnyJD.net
on 12 Feb 2010 at 2:13
This seems fixed in ruby-svn, currently 1.9.2.
It was some problem reading UTF data with `backticks`. At least
`cat testString.txt`.sub!(/.*/,"")
is what gives the error with certain testString.txt (one beeing the bg po file).
So this is not a problem in rubyripper.
Original comment by goo...@JonnyJD.net
on 12 Feb 2010 at 2:04
Thanks for analyzing this one :) I guess this means we can close this issue?
Original comment by boukewou...@gmail.com
on 12 Feb 2010 at 4:53
Just for reference:
I filed a backport request for ruby 1.9.1, requesting a backport of the fix in
1.9.2:
http://redmine.ruby-lang.org/issues/show/2762
Original comment by goo...@JonnyJD.net
on 18 Feb 2010 at 10:19
I'll keep this issue open since it's still relevant, at least for Arch Linux.
For creating the po- and mo-files it is sufficient to comment line 73 of the
file
tools.rb which is mentioned in the crash. Only drawback seems to be that the
version
number of the po-files is not updated. Since this affects no real users, I find
it a
good workaround.
Original comment by boukewou...@gmail.com
on 24 May 2010 at 7:34
Rename this issue to more properly reflect the real problem.
Original comment by boukewou...@gmail.com
on 24 May 2010 at 7:37
I've put the critical call of ruby-gettext in a begin/rescue part, so the
program can
continue. See commit:
http://github.com/rubyripperdev/rubyripper/commit/31faa99f1747ca2de3464eb5d8bfa0
1455c6
3f81
Since I can update the po-files myself with athe workaround of comment 5, this
is not
a real big problem.
Original comment by boukewou...@gmail.com
on 24 May 2010 at 8:15
Original issue reported on code.google.com by
goo...@JonnyJD.net
on 11 Feb 2010 at 9:55