From 870a4e12539d12200d7946b0c7e1f6ca45530262 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 10 Dec 2001 12:21:07 +0000 Subject: [PATCH] Update. 2001-12-10 Ulrich Drepper * sysdeps/generic/glob.c (glob): Return only pattern if nothing matches and GLOB_NOCHECK is set. * posix/globtest.sh: Correct expected result for NOCHECK test. * po/ca.po: Update from translation team. --- ChangeLog | 8 +++++++ localedata/ChangeLog | 3 +++ localedata/locales/ms_MY | 60 +++++++++++++++++++++++------------------------- po/ca.po | 38 +++++++++++++++--------------- posix/globtest.sh | 4 +--- sysdeps/generic/glob.c | 59 ++++++++--------------------------------------- 6 files changed, 69 insertions(+), 103 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a8ec41..3eeeff6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-12-10 Ulrich Drepper + + * sysdeps/generic/glob.c (glob): Return only pattern if nothing + matches and GLOB_NOCHECK is set. + * posix/globtest.sh: Correct expected result for NOCHECK test. + + * po/ca.po: Update from translation team. + 2001-12-09 Ulrich Drepper Implement transliteration of characters in strings of the locale diff --git a/localedata/ChangeLog b/localedata/ChangeLog index e32b1cd..2f650d4 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,5 +1,8 @@ 2001-12-10 Ulrich Drepper + * locales/ms_MY: Various bug fixes and additions. + Patch by Hasbullah Bin Pit (sebol) . + * locales/ca_ES: Fix typos (desembre -> decembre). Patch by Xavi Drudis Ferran . diff --git a/localedata/locales/ms_MY b/localedata/locales/ms_MY index 1685f8e..54ae1d1 100644 --- a/localedata/locales/ms_MY +++ b/localedata/locales/ms_MY @@ -4,19 +4,20 @@ escape_char / % Malay language locale for Malaysia. % Contributed by Kentaroh Noji and % Tetsuji Orita . +% Modified by Hasbullah Bin Pit (sebol) 2001, December, 10 LC_IDENTIFICATION title "Malay language locale for Malaysia" source "IBM Globalization Center of Competency, Yamato Software Laboratory" address "1623-14, Shimotsuruma, Yamato-shi, Kanagawa-ken, 242-8502, Japan" contact "" -email "bug-glibc@gnu.org" +email "bug-glibc@gnu.org, sebol@ikhlas.com" tel "" fax "" language "Malay" territory "Malaysia" revision "0.92b" -date "2000,September,4 (XML source:2000,July,20)" +date "2001, December, 10" % category "ms_MY:2000";LC_IDENTIFICATION category "ms_MY:2000";LC_CTYPE @@ -47,11 +48,11 @@ END LC_COLLATE LC_MONETARY % This is the POSIX Locale definition the LC_MONETARY category % generated by IBM Basic CountryPack Transformer. -% These are generated based on XML base Locale defintion file +% These are generated based on XML base Locale defintion file % for IBM Class for Unicode. % int_curr_symbol "" -currency_symbol "" +currency_symbol "" mon_decimal_point "" mon_thousands_sep "" mon_grouping 3 @@ -72,7 +73,7 @@ END LC_MONETARY LC_NUMERIC % This is the POSIX Locale definition for the LC_NUMERIC category % generated by IBM Basic CountryPack Transformer. -% These are generated based on XML base Locale defintion file +% These are generated based on XML base Locale defintion file % for IBM Class for Unicode. % decimal_point "" @@ -85,18 +86,18 @@ END LC_NUMERIC LC_TIME % This is the POSIX Locale definition for the LC_TIME category % generated by IBM Basic CountryPack Transformer. -% These are generated based on XML base Locale difintion file +% These are generated based on XML base Locale difintion file % for IBM Class for Unicode. % % Abbreviated weekday names (%a) -abday "";"";/ +abday "";"";/ "";"";/ "";"";/ "" % % Full weekday names (%A) day "";"";/ - "";"";/ + "";"";"";/ "" % @@ -116,22 +117,22 @@ mon "";"< "";"";/ "";"" % -% Equivalent of AM PM +% Equivalent of AM PM am_pm "";"" % -% Appropriate date and time representation +% Appropriate date and time representation % %A %d %b %Y %I:%M:%S %Z d_t_fmt "" % -% Appropriate date representation +% Appropriate date representation % %A %d %b %Y d_fmt "" % -% Appropriate time representation +% Appropriate time representation % %I:%M:%S %Z t_fmt "" % -% Appropriate 12 h time representation (%r) +% Appropriate 12 h time representation (%r) t_fmt_ampm "" % END LC_TIME @@ -146,22 +147,22 @@ LC_MESSAGES % ^[yY] yesexpr "" -% Syntax on Unicode Regular Expression Guidelines TR#18 +% Syntax on Unicode Regular Expression Guidelines TR#18 % yesexpr "" % -% ^[nN] -noexpr "" +% ^[nN] --> ^[tT] +noexpr "" -% Syntax on Unicode Regular Expression Guidelines TR#18 +% Syntax on Unicode Regular Expression Guidelines TR#18 % noexpr "" % -% Yes -yesstr "" +% Yes Ya +yesstr "" % -% No -nostr "" +% No Tidak +nostr "" % END LC_MESSAGES @@ -176,16 +177,14 @@ END LC_PAPER LC_NAME -% This is the ISO_IEC TR14652 Locale definition for the LC_NAME category -% generated by IBM Basic CountryPack Transformer. -% -% +% Edited By Hand by Hasbullah Pit +% name_mr = Encik, name_mrs = Puan , name_miss = Cik name_ms= Cik/Puan name_fmt "" name_gen "" -name_mr "" -name_mrs "" -name_miss "" -name_ms "" +name_mr "" +name_mrs "" +name_miss "" +name_ms "" END LC_NAME @@ -202,6 +201,7 @@ LC_TELEPHONE % This is the ISO_IEC TR14652 Locale definition for the LC_TELEPHONE % generated by IBM Basic CountryPack Transformer. tel_int_fmt "" +int_prefix "" END LC_TELEPHONE @@ -212,5 +212,3 @@ LC_MEASUREMENT measurement 1 END LC_MEASUREMENT - - diff --git a/po/ca.po b/po/ca.po index 8a26292..d5a0f6e 100644 --- a/po/ca.po +++ b/po/ca.po @@ -6,11 +6,11 @@ msgid "" msgstr "" "Project-Id-Version: libc 2.2.4\n" "POT-Creation-Date: 2001-08-13 15:08-0700\n" -"PO-Revision-Date: 2001-11-11 01:31+01:00\n" +"PO-Revision-Date: 2001-12-02 20:32+01:00\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Type: text/plain; charset=iso-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #: locale/programs/ld-monetary.c:278 @@ -430,7 +430,7 @@ msgstr "%s: S'ha especificat l'opci #: argp/argp-parse.c:646 #, c-format msgid "%s: Too many arguments\n" -msgstr "%s: Massa arguments\n" +msgstr "%s: Sobren arguments\n" #: locale/programs/ld-collate.c:457 locale/programs/ld-collate.c:483 #: locale/programs/ld-collate.c:499 @@ -633,7 +633,7 @@ msgstr "%s: fem al final de la data d'acabament de la cadena %Zd del camp #: posix/getopt.c:788 #, c-format msgid "%s: illegal option -- %c\n" -msgstr "%s: l'opció no és permesa -- %c\n" +msgstr "%s: no es permet l'opció «%c»\n" #: locale/programs/ld-address.c:578 locale/programs/ld-collate.c:3738 #: locale/programs/ld-ctype.c:2846 locale/programs/ld-identification.c:445 @@ -669,7 +669,7 @@ msgstr "%s: el nombre de regles d'ordenaci #: posix/getopt.c:791 #, c-format msgid "%s: invalid option -- %c\n" -msgstr "%s: l'opció no és vàlida -- %c\n" +msgstr "%s: l'opció «%c» no és vàlida\n" #: locale/programs/ld-time.c:330 #, c-format @@ -785,7 +785,7 @@ msgstr "%s: l'opci #: posix/getopt.c:821 posix/getopt.c:951 #, c-format msgid "%s: option requires an argument -- %c\n" -msgstr "%s: l'opció necessita un argument -- %c\n" +msgstr "%s: l'opció «%c» necessita un argument\n" #: locale/programs/ld-collate.c:1327 locale/programs/ld-collate.c:3675 #, c-format @@ -911,22 +911,22 @@ msgstr "%s: el tercer operand del valor del camp #: locale/programs/ld-time.c:983 #, c-format msgid "%s: too few values for field `%s'" -msgstr "%s: el camp «%s» té massa pocs valors" +msgstr "%s: manquen valors en el camp «%s»" #: locale/programs/ld-collate.c:555 #, c-format msgid "%s: too many rules; first entry only had %d" -msgstr "%s: hi ha massa regles; la primera entrada només en tenia %d" +msgstr "%s: sobren regles; la primera entrada només en tenia %d" #: locale/programs/ld-collate.c:906 #, c-format msgid "%s: too many values" -msgstr "%s: hi ha massa valors" +msgstr "%s: sobren valors" #: locale/programs/ld-time.c:1030 #, c-format msgid "%s: too many values for field `%s'" -msgstr "%s: el camp «%s» té massa valors" +msgstr "%s: sobren valors en el camp «%s»" #: locale/programs/ld-ctype.c:3641 #, c-format @@ -1604,7 +1604,7 @@ msgstr "La m #: stdio-common/../sysdeps/gnu/errlist.c:446 #: stdio-common/../sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c:175 msgid "Connection timed out" -msgstr "El temps de connexió ha expirat" +msgstr "La connexió ha expirat" #: stdio-common/../sysdeps/unix/siglist.c:45 sysdeps/generic/siglist.h:45 msgid "Continued" @@ -1836,7 +1836,7 @@ msgstr "Els tipus d'entrada i taula no concorden" #: nss/getent.c:127 nss/getent.c:292 #, c-format msgid "Enumeration not supported on %s\n" -msgstr "L'enumeració sobre «%s» no és suportada\n" +msgstr "No es suporta l'enumeració sobre «%s»\n" #: stdio-common/../sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c:30 msgid "Error 0" @@ -3051,11 +3051,11 @@ msgstr "Prefix opcional dels fitxers d'eixida" #: stdio-common/../sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c:93 msgid "Out of stream resources" -msgstr "No queden recursos del tipus flux" +msgstr "No resten recursos del tipus flux" #: stdio-common/../sysdeps/gnu/errlist.c:665 msgid "Out of streams resources" -msgstr "No queden recursos del tipus flux" +msgstr "No resten recursos del tipus flux" #: iconv/iconv_prog.c:64 locale/programs/localedef.c:99 msgid "Output control:" @@ -3620,7 +3620,7 @@ msgid "" msgstr "" "Directori del sistema de mapes de caràcters: %s\n" " mapes de repertori: %s\n" -" camí dels locales : %s\n" +" camí als locales : %s\n" "%s" #: nscd/nscd.c:90 @@ -3693,7 +3693,7 @@ msgstr "Cadena amb el t #: nis/nis_error.c:56 msgid "Too many attributes" -msgstr "Hi ha massa atributs" +msgstr "Sobren atributs" #. TRANS Too many levels of symbolic links were encountered in looking up a file name. #. TRANS This often indicates a cycle of symbolic links. @@ -5405,7 +5405,7 @@ msgstr "desbordament de l'hora" #: locale/programs/ld-ctype.c:1554 locale/programs/ld-ctype.c:2030 #, c-format msgid "to-value of range is smaller than from-value " -msgstr "el valor final del rang és menor que el d'inici " +msgstr "el valor final del rang és menor que l'inicial " #: locale/programs/ld-ctype.c:1688 msgid "to-value character sequence is smaller than from-value sequence" @@ -5413,11 +5413,11 @@ msgstr "la seq #: locale/programs/charmap.c:556 msgid "too few bytes in character encoding" -msgstr "hi ha massa pocs octets en la codificació del caràcter" +msgstr "manquen octets en la codificació del caràcter" #: locale/programs/charmap.c:558 msgid "too many bytes in character encoding" -msgstr "hi ha massa octets en la codificació del caràcter" +msgstr "sobren octets en la codificació del caràcter" #: timezone/zic.c:1874 msgid "too many leap seconds" diff --git a/posix/globtest.sh b/posix/globtest.sh index b85a8e5..a57c49f 100755 --- a/posix/globtest.sh +++ b/posix/globtest.sh @@ -559,9 +559,7 @@ ${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \ ${common_objpfx}posix/globtest -c "$testdir" "*/blahblah" | sort > $testout cat <<"EOF" | cmp - $testout >> $logfile || failed=1 -`dir1/blahblah' -`dir2/blahblah' -`noread/blahblah' +`*/blahblah' EOF if test $failed -ne 0; then echo "No check2 test failed" >> $logfile diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c index a17a4c4..5232054 100644 --- a/sysdeps/generic/glob.c +++ b/sysdeps/generic/glob.c @@ -953,18 +953,11 @@ glob (pattern, flags, errfunc, pglob) /* No matches. */ if (flags & GLOB_NOCHECK) { - size_t filename_len = strlen (filename) + 1; - char **new_pathv; int newcount = pglob->gl_pathc + pglob->gl_offs; - struct stat st; -#ifdef HAVE_STAT64 - struct stat64 st64; -#endif - /* This is an pessimistic guess about the size. */ pglob->gl_pathv = (char **) realloc (pglob->gl_pathv, - (newcount + dirs.gl_pathc + 1) + (newcount + 2) * sizeof (char *)); if (pglob->gl_pathv == NULL) { @@ -972,53 +965,19 @@ glob (pattern, flags, errfunc, pglob) return GLOB_NOSPACE; } - for (i = 0; i < dirs.gl_pathc; ++i) + pglob->gl_pathv[newcount] = __strdup (pattern); + if (pglob->gl_pathv[newcount] == NULL) { - const char *dir = dirs.gl_pathv[i]; - size_t dir_len = strlen (dir); - - /* First check whether this really is a directory. */ - if (((flags & GLOB_ALTDIRFUNC) - ? ((*pglob->gl_stat) (dir, &st) != 0 - || !S_ISDIR (st.st_mode)) - : (__stat64 (dir, &st64) != 0 - || !S_ISDIR (st64.st_mode)))) - /* No directory, ignore this entry. */ - continue; - - pglob->gl_pathv[newcount] = malloc (dir_len + 1 - + filename_len); - if (pglob->gl_pathv[newcount] == NULL) - { - globfree (&dirs); - globfree (pglob); - return GLOB_NOSPACE; - } - -#ifdef HAVE_MEMPCPY - mempcpy (mempcpy (mempcpy (pglob->gl_pathv[newcount], - dir, dir_len), - "/", 1), - filename, filename_len); -#else - memcpy (pglob->gl_pathv[newcount], dir, dir_len); - pglob->gl_pathv[newcount][dir_len] = '/'; - memcpy (&pglob->gl_pathv[newcount][dir_len + 1], - filename, filename_len); -#endif - ++pglob->gl_pathc; - ++newcount; + globfree (&dirs); + globfree (pglob); + return GLOB_NOSPACE; } + ++pglob->gl_pathc; + ++newcount; + pglob->gl_pathv[newcount] = NULL; pglob->gl_flags = flags; - - /* Now we know how large the gl_pathv vector must be. */ - new_pathv = (char **) realloc (pglob->gl_pathv, - ((newcount + 1) - * sizeof (char *))); - if (new_pathv != NULL) - pglob->gl_pathv = new_pathv; } else { -- 2.7.4