Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 48323 Details for
Bug 69407
bash-3.0-r7 has problem with wide char
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-3.0-histtimeformat.patch
bash-3.0-histtimeformat.patch (text/plain), 2.51 KB, created by
S.Caglar Onur
on 2005-01-12 10:04:59 UTC
(
hide
)
Description:
bash-3.0-histtimeformat.patch
Filename:
MIME Type:
Creator:
S.Caglar Onur
Created:
2005-01-12 10:04:59 UTC
Size:
2.51 KB
patch
obsolete
>--- bash-3.0/locale.c.~1~ 2004-03-17 14:33:36.000000000 +0100 >+++ bash-3.0/locale.c 2004-08-01 11:05:15.484280755 +0200 >@@ -71,9 +71,10 @@ set_default_locale () > textdomain (PACKAGE); > } > >-/* Set default values for LC_CTYPE, LC_COLLATE, LC_MESSAGES and LC_NUMERIC >- if they are not specified in the environment, but LC_ALL is. This >- should be called from main() after parsing the environment. */ >+/* Set default values for LC_CTYPE, LC_COLLATE, LC_MESSAGES, LC_NUMERIC >+ and LC_TIME if they are not specified in the environment, but LC_ALL >+ is. This should be called from main() after parsing the >+ environment. */ > void > set_default_locale_vars () > { >@@ -109,6 +110,12 @@ set_default_locale_vars () > setlocale (LC_NUMERIC, lc_all); > # endif /* LC_NUMERIC */ > >+# if defined (LC_TIME) >+ val = get_string_value ("LC_TIME"); >+ if (val == 0 && lc_all && *lc_all) >+ setlocale (LC_TIME, lc_all); >+# endif /* LC_TIME */ >+ > #endif /* HAVE_SETLOCALE */ > > val = get_string_value ("TEXTDOMAIN"); >@@ -213,6 +220,13 @@ set_locale_var (var, value) > return (setlocale (LC_NUMERIC, get_locale_var ("LC_NUMERIC")) != 0); > # endif /* LC_NUMERIC */ > } >+ else if (var[3] == 'T' && var[4] == 'I') /* LC_TIME */ >+ { >+# if defined (LC_TIME) >+ if (lc_all == 0 || *lc_all == '\0') >+ return (setlocale (LC_TIME, get_locale_var ("LC_TIME")) != 0); >+# endif /* LC_TIME */ >+ } > #endif /* HAVE_SETLOCALE */ > > return (0); >@@ -285,6 +299,9 @@ reset_locale_vars () > # if defined (LC_NUMERIC) > setlocale (LC_NUMERIC, get_locale_var ("LC_NUMERIC")); > # endif >+# if defined (LC_TIME) >+ setlocale (LC_TIME, get_locale_var ("LC_TIME")); >+# endif > > locale_setblanks (); > >--- bash-3.0/variables.c.~1~ 2004-07-04 19:57:26.000000000 +0200 >+++ bash-3.0/variables.c 2004-08-01 11:07:47.331188616 +0200 >@@ -3646,6 +3646,7 @@ static struct name_and_function special_ > { "LC_CTYPE", sv_locale }, > { "LC_MESSAGES", sv_locale }, > { "LC_NUMERIC", sv_locale }, >+ { "LC_TIME", sv_locale }, > > { "MAIL", sv_mail }, > { "MAILCHECK", sv_mail }, >--- ./builtins/history.def.orig 2003-12-20 00:02:09.000000000 +0100 >+++ ./builtins/history.def 2004-08-01 18:18:02.652720102 +0200 >@@ -287,9 +287,10 @@ > QUIT; > > timestr = (histtimefmt && *histtimefmt) ? histtime (hlist[i], histtimefmt) : (char *)NULL; >- printf ("%5d%c %s%s\n", i + history_base, >+ printf ("%5d%c %s%s%s\n", i + history_base, > histdata(i) ? '*' : ' ', > ((timestr && *timestr) ? timestr : ""), >+ ((timestr && *timestr) ? " " : ""), > histline(i)); > i++; > } > > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69407
:
42907
|
43427
|
43522
|
48318
|
48319
|
48320
|
48321
|
48322
|
48323
|
48324
|
48325
|
48326
|
48328
|
59114
|
63407