Public bug reported:

Using Ubuntu 18.04 on host, vm and Docker images. However, when I try to
change a line in the container I get this error message:

rpl "ALLOWED_HOSTS = []" "ALLOWED_HOSTS = ['*']" path/file .

Replacing "ALLOWED_HOSTS = []" with "ALLOWED_HOSTS = ['*']" (case sensitive) 
(partial words matched)
.Traceback (most recent call last):
  File "/usr/bin/rpl", line 314, in <module>
    main()
  File "/usr/bin/rpl", line 246, in main
    matches = blockrepl(f, o, regex, old_str, new_str, 1024)
  File "/usr/bin/rpl", line 92, in blockrepl
    parts = (after.join(parts)).encode(encoding=encoding, errors='ignore')
TypeError: encode() argument 1 must be str, not None


Same command in a vm:

rpl "ALLOWED_HOSTS = []" "ALLOWED_HOSTS = ['*']" path/file .

Replacing "ALLOWED_HOSTS = []" with "ALLOWED_HOSTS = ['*']" (case sensitive) 
(partial words matched)
.
A Total of 1 matches replaced in 1 file searched.

** Affects: rpl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1823401

Title:
  rpl command error on docker container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rpl/+bug/1823401/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to