Skip to content

Add multi-byte supportAdd multi-byte support

Herbert Xu dash 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest13 patches 0 repliesNew
  2. v413 patches 0 repliesSuperseded
  3. v313 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches0 repliesSuperseded
v18 patches8 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13shell: Call setlocalesrc/main.c+4 -00 replies
2/13shell: Use strcoll instead of strcmp where applicablesrc/bltin/test.c src/expand.c+5 -50 replies
3/13expand: Count multi-byte characters for VSLENGTHsrc/expand.c src/memalloc.h+94 -230 replies
4/13expand: Process multi-byte characters in subevalvarsrc/expand.c src/expand.h src/mystring.c +1 more+125 -490 replies
5/13expand: Process multi-byte characters in expmetasrc/expand.c+72 -330 replies
6/13expand: Support multi-byte characters during field splittingsrc/expand.c src/expand.h src/var.c+309 -1590 replies
7/13expand: Add multi-byte support to pmatchsrc/eval.c src/expand.c+227 -1470 replies
8/13input: Allow MB_LEN_MAX calls to pungetcsrc/input.c src/input.h+42 -270 replies
9/13input: Add pgetc_eoasrc/input.c src/input.h+9 -20 replies
10/13parser: Add support for multi-byte characterssrc/expand.c src/mktokens src/parser.c+129 -270 replies
11/13input: Always push in setinputfilesrc/input.c+8 -90 replies
12/13builtin: Use pgetc in read(1)src/input.c src/input.h src/miscbltin.c+48 -340 replies
13/13builtin: Process multi-byte characters in read(1)src/miscbltin.c src/parser.c src/parser.h+15 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [v5 PATCH 00/13] Add multi-byte supportAdd multi-byte support

v5 rebases on top of the expmeta resource leakage patch.

This patch series adds multi-byte support to dash. For now only fnmatch is supported as the native pmatch function has not been modified to support multi-byte characters.

Herbert Xu (13):
shell: Call setlocale
shell: Use strcoll instead of strcmp where applicable
expand: Count multi-byte characters for VSLENGTH
expand: Process multi-byte characters in subevalvar
expand: Process multi-byte characters in expmeta
expand: Support multi-byte characters during field splitting
expand: Add multi-byte support to pmatch
input: Allow MB_LEN_MAX calls to pungetc
input: Add pgetc_eoa
parser: Add support for multi-byte characters
input: Always push in setinputfile
builtin: Use pgetc in read(1)
builtin: Process multi-byte characters in read(1)

 src/bltin/test.c |    8 +-
 src/eval.c       |    3 +-
 src/expand.c     | 1019 +++++++++++++++++++++++++++++++++-------------
 src/expand.h     |    2 +
 src/input.c      |  119 ++++--
 src/input.h      |   15 +-
 src/main.c       |    4 +
 src/memalloc.h   |   10 +-
 src/miscbltin.c  |   58 +--
 src/mktokens     |    1 +
 src/mystring.c   |    2 +-
 src/parser.c     |  136 +++++--
 src/parser.h     |    2 +
 src/var.c        |   12 +-
 14 files changed, 978 insertions(+), 413 deletions(-)
Signature · 1 line
2.39.2