1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00
dequis 0d8632943d Add a wrapper of wcwidth() that picks the best implementation
This adds a i_wcwidth() function that replaces mk_wcwidth(), and a
'wcwidth_implementation' setting to pick which one it wraps.

Values:

- old: uses our local mk_wcwidth() which implements unicode 5.0
- system: uses the libc-provided wcwidth(), which may be better or worse
  than ours depending on how up to date the system is.
- auto: tests the system one against two characters that became
  fullwidth in unicode 5.2 and 9.0 respectively. If either of them pass,
  pick the system implementation, otherwise pick ours.

It defaults to auto.

mk_wcwidth() is still preferable in some cases, since the way it uses
ranges for fullwidth characters means most CJK blocks are covered even
if their characters didn't exist back then.

The "system" implementation is also wrapped to never return -1, but to
assume those unknown characters use one cell. Quoting the code:

    /* Treat all unknown characters as taking one cell. This is
     * the reason mk_wcwidth and other outdated implementations
     * mostly worked with newer unicode, while glibc's wcwidth
     * needs updating to recognize new characters.
     *
     * Instead of relying on that, we keep the behavior of assuming
     * one cell even for glibc's implementation, which is still
     * highly accurate and less of a headache overall.
     */
2018-08-23 02:30:26 -03:00
2018-04-24 14:00:30 +02:00
2018-01-06 00:26:48 +01:00
2018-03-07 02:23:02 +01:00
2017-11-16 13:50:48 +01:00
2018-03-29 22:41:12 +02:00
2018-02-26 23:32:57 +01:00
2018-02-13 00:03:17 +01:00
2007-05-08 17:51:51 +00:00
2008-03-04 17:46:11 +00:00
2018-01-16 15:23:54 +00:00
2018-01-16 15:23:54 +00:00
2008-03-30 13:53:33 +00:00

Irssi

Build Status

Irssi is a modular chat client that is most commonly known for its text mode user interface, but 80% of the code isn't text mode specific. Irssi comes with IRC support built in, and there are third party ICB, SILC, XMPP (Jabber), PSYC and Quassel protocol modules available.

irssi

Download information

Development source installation

git clone https://github.com/irssi/irssi
cd irssi
./autogen.sh
make && sudo make install

Release source installation

tar xJf irssi-*.tar.xz
cd irssi-*
./configure
make && sudo make install

Requirements

See the INSTALL file for details

Documentation

Themes

Scripts

Modules

Security information

Please report security issues to staff@irssi.org. Thanks!

Bugs / Suggestions / Contributing

Check the GitHub issues if it is already listed in there; if not, open an issue on GitHub or send a mail to staff@irssi.org.

Irssi is always looking for developers. Feel free to submit patches through GitHub pull requests.

You can also contact the Irssi developers in #irssi on freenode.

Description
No description provided
Readme 12 MiB
Languages
C 91%
XS 3.4%
Perl 2%
Meson 1.8%
Prolog 1.4%
Other 0.4%