View previous topic :: View next topic |
Author |
Message |
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Dec 08, 2012 2:49 pm Post subject: emerge doesn't parse malformed EMERGE_DEFAULT_OPTScorrectly |
|
|
At a user mode linux image (where I do chroot into it), I'm suddenly faces with this : Code: | $ sudo ~/workspace/bin/chr_uml.sh -r /home/tfoerste/virtual/uml/n22stab4
n22 ~ # emerge --info
Traceback (most recent call last):
File "/usr/bin/emerge", line 48, in <module>
retval = emerge_main()
File "/usr/lib/portage/pym/_emerge/main.py", line 1018, in emerge_main
myaction, myopts, myfiles = parse_opts(tmpcmdline)
File "/usr/lib/portage/pym/_emerge/main.py", line 671, in parse_opts
myoptions, myargs = parser.parse_args(args=tmpcmdline)
File "/usr/lib/python2.7/optparse.py", line 1401, in parse_args
self.error(str(err))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 21: ordinal not in range(128)
| Any ideas ?
Last edited by toralf on Sat Dec 08, 2012 5:02 pm; edited 2 times in total |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Dec 08, 2012 3:36 pm Post subject: |
|
|
The first guess is that locale is likely unset - python gets often upset with POSIX locale. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Dec 08, 2012 3:52 pm Post subject: |
|
|
gah - I damaged make.conf : Code: | EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --nospinner --tree --quiet-build --deeü"
| Fortunately python3 is better than python2 to realize this : Code: | n22 ~ # eselect python list
Available Python interpreters:
[1] python2.7 *
[2] python3.2
n22 ~ # emerge --info
Traceback (most recent call last):
File "/usr/bin/emerge", line 48, in <module>
retval = emerge_main()
File "/usr/lib/portage/pym/_emerge/main.py", line 1018, in emerge_main
myaction, myopts, myfiles = parse_opts(tmpcmdline)
File "/usr/lib/portage/pym/_emerge/main.py", line 671, in parse_opts
myoptions, myargs = parser.parse_args(args=tmpcmdline)
File "/usr/lib/python2.7/optparse.py", line 1401, in parse_args
self.error(str(err))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 21: ordinal not in range(128)
n22 ~ # eselect python set 2
n22 ~ # emerge --info
Usage: emerge [options]
emerge: error: no such option: --deeü
|
Hhm - /me wonders whether portage + python2 could handle it better or whether it is a fault behaviour of python2 ?
UpdateAnd it handles UTF-8 typos right at the command line Code: | n22 ~ # emerge --deeü
Usage: emerge [options]
emerge: error: no such option: --deeü
| but not if the same typo is made in make.conf
https://bugs.gentoo.org/show_bug.cgi?id=446498
/Update |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|