[dovecot/core] bfc72f: lib: unichar: Add Horizontal Ellipsis character.

GitHub noreply at github.com
Fri Apr 27 13:30:18 EEST 2018


  Branch: refs/heads/master-2.3
  Home:   https://github.com/dovecot/core
  Commit: bfc72f9d2a34c6a8932248b800e8a927fca52740
      https://github.com/dovecot/core/commit/bfc72f9d2a34c6a8932248b800e8a927fca52740
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-04-27 (Fri, 27 Apr 2018)

  Changed paths:
    M src/lib/unichar.h

  Log Message:
  -----------
  lib: unichar: Add Horizontal Ellipsis character.


  Commit: 2f86f050a62d375a17d83c6505b65a8fa58d5a41
      https://github.com/dovecot/core/commit/2f86f050a62d375a17d83c6505b65a8fa58d5a41
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-04-27 (Fri, 27 Apr 2018)

  Changed paths:
    M src/lib/str-sanitize.c
    M src/lib/str-sanitize.h
    M src/lib/test-str-sanitize.c

  Log Message:
  -----------
  lib: Implement str_sanitize_utf8().

Unlike str_sanitize(), this function truncates strings based on a UTF8 code point
limit rather than a maximum size in bytes. Also, the Unicode replacement
character is used to mark invalid/control characters and an ellipsis character
is used to indicate the string truncation. For the normal str_sanitize() this is
done using a question mark and triple dots respectively.


Compare: https://github.com/dovecot/core/compare/ed33a45fd430...2f86f050a62d


More information about the dovecot-cvs mailing list