[Rock-dev] encoding in autoproj

Chris Mueller christoph.mueller at dfki.de
Wed Feb 15 15:59:55 CET 2012


Here is a small error in autoproj relating to the encoding in a ruby file.

$ autoproj update

autoproj: updating remote definitions of package sets
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:302:in 
`block in dpkg_package_installed?': invalid byte sequence in US-ASCII 
(ArgumentError)
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:292:in 
`each'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:292:in 
`dpkg_package_installed?'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:628:in `[]'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:628:in 
`block in filter_uptodate_os_packages'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:628:in 
`each'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:628:in 
`find_all'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:628:in 
`filter_uptodate_os_packages'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/osdeps.rb:940:in 
`install'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/lib/autoproj/cmdline.rb:272:in 
`update_configuration'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/bin/autoproj:108:in `block in 
<top (required)>'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/bin/autoproj:23:in `block in 
report'
         from 
/home/auv/dev/.gems/gems/autobuild-1.5.61/lib/autobuild/reporting.rb:78:in 
`report'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/bin/autoproj:22:in `report'
         from 
/home/auv/dev/.gems/gems/autoproj-1.7.18/bin/autoproj:68:in `<top 
(required)>'
         from /home/auv/dev/.gems/bin/autoproj:19:in `load'
         from /home/auv/dev/.gems/bin/autoproj:19:in `<main>'

I guess, this problem probably only occurs when setting the locales on 
the system is different from UTF-8.
auv at avalon:~/dev$ autoproj update
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
         LANGUAGE = "de_DE.UTF-8",
         LC_ALL = "de_DE.UTF-8",
         LC_MESSAGES = "de_DE.UTF-8",
         LC_COLLATE = "de_DE.UTF-8",
         LC_CTYPE = "de_DE.UTF-8",
         LANG = "en_US.UTF-8"
     are supported and installed on your system.


$ autoproj update --no-osdeps
is working fine.



More information about the Rock-dev mailing list