[DRE-maint] Bug#596351: ohai fails with: to_json: source sequence is illegal/malformed
Alexander Kurtz
kurtz.alex at googlemail.com
Sun Aug 7 17:17:38 UTC 2011
Hi everybody,
AFAICT ohai works fine nowadays:
$ getent passwd 1000
alexander:x:1000:1000:Alexander' Kurtz£,,,,:/home/alexander:/bin/bash
$ ohai
{
[...]
"platform": "debian"
}
$
Chris Butler suggested[1] that this commit to ruby-json might be a fix:
https://github.com/flori/json/commit/dd06e48aa414674f52e81f9cdc7836b6456c04f8
This commit seems to be included in the latest version of ruby-json:
$ grep --recursive --context=3 'def benchmark_generator_ascii' ruby-json-1.5.3/
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb-
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb- alias reset_benchmark_generator_pretty generic_reset_method
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb-
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb: def benchmark_generator_ascii
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb- @result = JSON.generate(@big, :ascii_only => true)
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb- end
ruby-json-1.5.3/benchmarks/generator2_benchmark.rb-
--
ruby-json-1.5.3/benchmarks/generator_benchmark.rb-
ruby-json-1.5.3/benchmarks/generator_benchmark.rb- alias reset_benchmark_generator_pretty generic_reset_method
ruby-json-1.5.3/benchmarks/generator_benchmark.rb-
ruby-json-1.5.3/benchmarks/generator_benchmark.rb: def benchmark_generator_ascii
ruby-json-1.5.3/benchmarks/generator_benchmark.rb- @result = JSON.generate(@big, :ascii_only => true)
ruby-json-1.5.3/benchmarks/generator_benchmark.rb- end
ruby-json-1.5.3/benchmarks/generator_benchmark.rb-
$
Unless somebody tells me otherwise, I'm going to reassign this bug to
ruby-json and close it with the appropriate version in a few days.
Best regards
Alexander Kurtz
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596351#50
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20110807/901bad3d/attachment-0001.pgp>
More information about the Pkg-ruby-extras-maintainers
mailing list