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

GitHub noreply at github.com
Tue Apr 17 23:30:17 EEST 2018


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

  Changed paths:
    M src/lib/unichar.h

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


  Commit: a2de39bad6420dae9b9f2b57a67685f40cf0b056
      https://github.com/dovecot/core/commit/a2de39bad6420dae9b9f2b57a67685f40cf0b056
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-04-17 (Tue, 17 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/381d900a2d0c...a2de39bad642


More information about the dovecot-cvs mailing list