From owner-cvs-src-old@FreeBSD.ORG Sun May 8 11:33:17 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04AF21065672 for ; Sun, 8 May 2011 11:33:17 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CF7C58FC1D for ; Sun, 8 May 2011 11:33:16 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p48BXGhb087588 for ; Sun, 8 May 2011 11:33:16 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p48BXGAH087587 for cvs-src-old@freebsd.org; Sun, 8 May 2011 11:33:16 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201105081133.p48BXGAH087587@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 8 May 2011 11:32:20 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh expand.c src/tools/regression/bin/sh/builtins case5.0 src/tools/regression/bin/sh/expansion trim8.0 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 11:33:17 -0000 jilles 2011-05-08 11:32:20 UTC FreeBSD src repository Modified files: bin/sh expand.c Added files: tools/regression/bin/sh/builtins case5.0 tools/regression/bin/sh/expansion trim8.0 Log: SVN rev 221646 on 2011-05-08 11:32:20Z by jilles sh: Add UTF-8 support to pattern matching. ?, [...] patterns match codepoints instead of bytes. They do not match invalid sequences. [...] patterns must not contain invalid sequences otherwise they will not match anything. This is so that ${var#?} removes the first codepoint, not the first byte, without putting UTF-8 knowledge into the ${var#pattern} code. However, * continues to match any string and an invalid sequence matches an identical invalid sequence. (This differs from fnmatch(3).) Revision Changes Path 1.85 +50 -12 src/bin/sh/expand.c 1.1 +57 -0 src/tools/regression/bin/sh/builtins/case5.0 (new) 1.1 +75 -0 src/tools/regression/bin/sh/expansion/trim8.0 (new)