Project

General

Profile

Actions

Bug #2877

open

sed fails when working with UTF-8 locale and non-UTF symbols

Added by arcade@b1t.name about 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Userland
Target version:
Start date:
12/30/2015
Due date:
% Done:

0%

Estimated time:

Description

I.e. when some file has a line with upper ASCII symbols:

  • and L<E1>szl<F3> N<E9>meth (Hunspell). Portions created by the Initial Developers

and LANG is set to *.UTF8 running sed on that file results in:

+ /usr/bin/sed -i.bak -e 's|%%LOCALBASE%%|/usr/local|g' /tmp/ports/www/firefox/firefox-43.0.1/extensions/spellcheck/hunspell/glue/mozHunspell.cpp
sed: RE error: Illegal byte sequence

Unsetting lang makes sed silently accept the file.

No data to display

Actions

Also available in: Atom PDF