Re: [exim-dev] UTF-8 and Exim string operations

2018-08-18 Thread Jeremy Harris via Exim-dev
On 08/18/2018 08:38 AM, Heiko Schlittermann via Exim-dev wrote: > And a new addtional main option > > string_encoding = ascii | utf8 (default: ascii) > > which can then switch ${strlen:…} to be equivalent to ${ustrlen:…} I'm not particularly happy about global mode-switches. Too much

Re: [exim-dev] UTF-8 and Exim string operations

2018-08-18 Thread Heiko Schlittermann via Exim-dev
Heiko Schlittermann (Sa 18 Aug 2018 09:29:50 CEST): > > This. > > > > Add new operators, or options on current ones; don't > > change how they currently work (barring bugs). > > +1 After a little bit more thinking ${astrlen:Ötzi} yields 5 ${ustrlen:Ötzi} yields 4 ${strlen:…} is

Re: [exim-dev] UTF-8 and Exim string operations

2018-08-18 Thread Heiko Schlittermann via Exim-dev
Jeremy Harris via Exim-dev (Fr 17 Aug 2018 13:03:33 CEST): > On 08/17/2018 05:03 AM, Phil Pennock via Exim-dev wrote: > > Anyone have strong feelings on how Exim should handle UTF-8 with > > operators such as ${length_1:STR} ? > > > > Document that the current operators work on bytes > > This. >