Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Feb 2020 20:09:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 243853] sysutil/iocage doesn't handle locales
Message-ID:  <bug-243853-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243853

            Bug ID: 243853
           Summary: sysutil/iocage doesn't handle locales
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: kmachine@free.fr

py37-iocage-1.2.4 makes errors when locale isn't "C" or "...UTF8".

-----------
$ export LANG=3D"en_US.UTF-8"
$ sudo iocage start ftp
* Starting ftp
  + Started OK
  + Using devfs_ruleset: 1000 (iocage generated default)
  + Using IP options: ip4.addr=3Dre0|192.168.5.12/24 ip4.saddrsel=3D1 ip4=
=3Dnew
ip6.saddrsel=3D0 ip6=3Ddisable
  + Starting services OK
  + Executing poststart OK
$ sudo iocage stop ftp
* Stopping ftp
  + Executing prestop OK
  + Stopping services OK
  + Removing devfs_ruleset: 1000 OK
  + Removing jail process OK
  + Executing poststop OK

$ export LANG=3D"fr_FR.ISO8859-15"=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
$ sudo iocage start ftp=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
* Starting ftp=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
  + Started OK=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
  + Using devfs_ruleset: 1000 (iocage generated default)=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
  + Using IP options: ip4.addr=3Dre0|192.168.5.12/24 ip4.saddrsel=3D1 ip4=
=3Dnew
ip6.saddrsel=3D0 ip6=3Ddisable=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Traceback (most recent call last):=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20
  File "/usr/local/bin/iocage", line 10, in <module>=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
    sys.exit(cli())=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in
__call__=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
    return self.main(*args, **kwargs)=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in
main=20
    rv =3D self.invoke(ctx)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in
invoke=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20
    return _process_result(sub_ctx.command.invoke(sub_ctx))=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in
invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in
invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/iocage_cli/start.py", line 6=
0,
in cli
    ioc.IOCage(jail=3Djail, rc=3Drc).start(ignore_exception=3Dignore)
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line
1907, in start
    used_ports=3Dused_ports,
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_start.py", li=
ne
87, in __init__
    raise e
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_start.py", li=
ne
84, in __init__
    self.__start_jail__()
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_start.py", li=
ne
769, in __start_jail__
    + exec_start, None, unjailed=3DTrue, decode=3DTrue
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_exec.py", line
268, in __init__
    self.output =3D list(silent)
  File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_exec.py", line
243, in exec_jail
    yield rtrn_stdout.decode(), rtrn_stderr.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 9: inv=
alid
continuation byte
-----------

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243853-7788>