public inbox for dash@vger.kernel.org
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: DASH Mailing List <dash@vger.kernel.org>
Subject: [v5 PATCH 00/13] Add multi-byte supportAdd multi-byte support
Date: Sun, 02 Jun 2024 09:28:43 +0800	[thread overview]
Message-ID: <cover.1717291579.git.herbert@gondor.apana.org.au> (raw)

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(-)

-- 
2.39.2


             reply	other threads:[~2024-06-02  1:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-02  1:28 Herbert Xu [this message]
2024-06-02  1:28 ` [v5 PATCH 01/13] shell: Call setlocale Herbert Xu
2024-06-02  1:28 ` [v5 PATCH 02/13] shell: Use strcoll instead of strcmp where applicable Herbert Xu
2024-06-02  1:28 ` [v5 PATCH 03/13] expand: Count multi-byte characters for VSLENGTH Herbert Xu
2024-06-02  1:28 ` [v5 PATCH 04/13] expand: Process multi-byte characters in subevalvar Herbert Xu
2024-06-02  1:28 ` [v5 PATCH 05/13] expand: Process multi-byte characters in expmeta Herbert Xu
2024-06-02  1:28 ` [v5 PATCH 06/13] expand: Support multi-byte characters during field splitting Herbert Xu
2024-06-02  1:28 ` [v5 PATCH 07/13] expand: Add multi-byte support to pmatch Herbert Xu
2024-06-02  1:29 ` [v5 PATCH 08/13] input: Allow MB_LEN_MAX calls to pungetc Herbert Xu
2024-06-02  1:29 ` [v5 PATCH 09/13] input: Add pgetc_eoa Herbert Xu
2024-06-02  1:29 ` [v5 PATCH 10/13] parser: Add support for multi-byte characters Herbert Xu
2024-06-02  1:29 ` [v5 PATCH 11/13] input: Always push in setinputfile Herbert Xu
2024-06-02  1:29 ` [v5 PATCH 12/13] builtin: Use pgetc in read(1) Herbert Xu
2024-06-02  1:29 ` [v5 PATCH 13/13] builtin: Process multi-byte characters " Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1717291579.git.herbert@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox