Re: Case modification fails for Unicode characters

2012-07-13 Thread Chet Ramey
On 7/12/12 2:19 PM, Dennis Williamson wrote: > s=łódź; echo "${s^^} ${s~~}"' > łóDź ŁÓDŹ > > The to-upper and the undocumented toggle operators should produce > identical output in this situation, but only the toggle works > correctly. Thanks for the report. Andreas's fix is correct. That will

Re: Case modification fails for Unicode characters

2012-07-13 Thread Chet Ramey
On 7/13/12 3:39 AM, Andreas Schwab wrote: > It _is_ a bash bug. Thanks for the fix. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/

Re: Case modification fails for Unicode characters

2012-07-13 Thread Andreas Schwab
It _is_ a bash bug. diff --git a/lib/sh/casemod.c b/lib/sh/casemod.c index 3127d8c..d58b216 100644 --- a/lib/sh/casemod.c +++ b/lib/sh/casemod.c @@ -227,8 +227,8 @@ sh_modcase (string, pat, flags) { default: case CASE_NOOP: nwc = wc; break; - case CASE_UPPER:

Re: Case modification fails for Unicode characters

2012-07-12 Thread Pierre Gaston
On Fri, Jul 13, 2012 at 3:46 AM, Dennis Williamson wrote: > On Thu, Jul 12, 2012 at 1:57 PM, DJ Mills wrote: >> On Thu, Jul 12, 2012 at 2:19 PM, Dennis Williamson >> wrote: >>> s=łódź; echo "${s^^} ${s~~}"' >>> łóDź ŁÓDŹ >>> >>> The to-upper and the undocumented toggle operators should produce >

Re: Case modification fails for Unicode characters

2012-07-12 Thread Dennis Williamson
On Thu, Jul 12, 2012 at 1:57 PM, DJ Mills wrote: > On Thu, Jul 12, 2012 at 2:19 PM, Dennis Williamson > wrote: >> s=łódź; echo "${s^^} ${s~~}"' >> łóDź ŁÓDŹ >> >> The to-upper and the undocumented toggle operators should produce >> identical output in this situation, but only the toggle works >>

Re: Case modification fails for Unicode characters

2012-07-12 Thread DJ Mills
On Thu, Jul 12, 2012 at 2:19 PM, Dennis Williamson wrote: > s=łódź; echo "${s^^} ${s~~}"' > łóDź ŁÓDŹ > > The to-upper and the undocumented toggle operators should produce > identical output in this situation, but only the toggle works > correctly. > > This is in en_US.UTF-8, but also reported in