Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] helpfiles: Also accept 'UTF-8' as an encoding name.



On Nov 13,  4:56pm, Martin Vaeth wrote:
} Subject: Re: [PATCH] helpfiles: Also accept 'UTF-8' as an encoding name.
}
} Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
} > In helpfiles, line 77 (either with or without my previous patch):
} >
} >         } elsif(($choice < 1) && (/(en)|\./i)) {
} >
} > the pattern matches everything containing either 'en' or '.'.
} > What is intended here?
} 
} Yes, this is the last fallback if nothing with utf8 can be found.

Are you sure you didn't mean (/(^en)|\./i) ?  It's really OK for the
"en" to appear anywhere?  And wouldn't you want to prefer something
that contains "en" to somethimg that was found previously but has "."?



Messages sorted by: Reverse Date, Date, Thread, Author