Mailinglist Archive: opensuse-bugs (16575 mails)
| < Previous | Next > |
[Bug 397244] New: utf-8 breaks sed
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Wed, 4 Jun 2008 13:46:12 -0600 (MDT)
- Message-id: <bug-397244-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=397244
Summary: utf-8 breaks sed
Product: openSUSE 11.0
Version: RC 1
Platform: i586
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: koenig@xxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
the sed expression below should strip off everything upto and including the
last space. but with utf-8 locale this doesn't work:
echo -e 'Intel\xae Core 2 Duo T7300' | LC_ALL=C sed 's/.* //'
T7300
echo -e 'Intel\xae Core 2 Duo T7300' | LC_ALL=de_DE sed 's/.* //'
T7300
BUT:
cho -e 'Intel\xae Core 2 Duo T7300' | LC_ALL=de_DE.utf-8 sed 's/.* //'
Intel�T7300
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Summary: utf-8 breaks sed
Product: openSUSE 11.0
Version: RC 1
Platform: i586
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: koenig@xxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
the sed expression below should strip off everything upto and including the
last space. but with utf-8 locale this doesn't work:
echo -e 'Intel\xae Core 2 Duo T7300' | LC_ALL=C sed 's/.* //'
T7300
echo -e 'Intel\xae Core 2 Duo T7300' | LC_ALL=de_DE sed 's/.* //'
T7300
BUT:
cho -e 'Intel\xae Core 2 Duo T7300' | LC_ALL=de_DE.utf-8 sed 's/.* //'
Intel�T7300
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |