bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29138] expand doesn't support multibyte characters (e.g. UTF-8) (p


From: Herbert Thielen
Subject: [bug #29138] expand doesn't support multibyte characters (e.g. UTF-8) (patch available)
Date: Tue, 09 Mar 2010 14:56:29 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.2 (like Gecko)

URL:
  <http://savannah.gnu.org/bugs/?29138>

                 Summary: expand doesn't support multibyte characters (e.g.
UTF-8) (patch available)
                 Project: GNU Core Utilities
            Submitted by: hthielen
            Submitted on: Di 09 Mär 2010 14:56:28 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

'expand' doesn't replace tab characters by the correct number of spaces in
case the input data contains multibyte characters, e.g. german umlauts when
using the locale UTF-8.

A small example test file is attached.

I've attached a patch to coreutils 8.4 which works for me, but I'm not
experienced in wide character programming, so there might still be some
problem - more tests and review needed.

Thanks for the work, best regards

Herbert.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Di 09 Mär 2010 14:56:28 GMT  Name: expand-wrong-with-utf8-test.input 
Size: 156B   By: hthielen

<http://savannah.gnu.org/bugs/download.php?file_id=19891>
-------------------------------------------------------
Date: Di 09 Mär 2010 14:56:28 GMT  Name:
expand-wrong-with-utf8-test.expected-output  Size: 196B   By: hthielen

<http://savannah.gnu.org/bugs/download.php?file_id=19892>
-------------------------------------------------------
Date: Di 09 Mär 2010 14:56:28 GMT  Name: expand.c.patch  Size: 2kB   By:
hthielen

<http://savannah.gnu.org/bugs/download.php?file_id=19893>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29138>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]