[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Exposing wcwidth(3) as a built-in function

From: Eli Zaretskii
Subject: Re: [bug-gawk] Exposing wcwidth(3) as a built-in function
Date: Fri, 01 Dec 2017 21:41:14 +0200

> Date: Fri, 1 Dec 2017 08:41:25 -0800
> From: Eric Pruitt <address@hidden>
> I decided to make a less hacky, portable version of the wcwidth
> function. The rewritten script is much smaller, and it doesn't kill the
> MAWK parser like its predecessor. Lookups are done using a binary search
> on a table that is lazy-loaded at runtime. I've attached the updated
> script to this email, but the canonical repository is
> https://github.com/ericpruitt/wcwidth.awk .

Thanks, but doesn't this still assume UTF-8 encoding of characters?
If so, it's not portable to non-UTF-8 locales, right?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]