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

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


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: e182a2587f69122029c7236d464e11e53ca8c8df
      https://github.com/dovecot/core/commit/e182a2587f69122029c7236d464e11e53ca8c8df
  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: b1b531b3720961b87cd94975341a941bc3406d58
      https://github.com/dovecot/core/commit/b1b531b3720961b87cd94975341a941bc3406d58
  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/6a38ed970ff7...b1b531b37209


More information about the dovecot-cvs mailing list