[dovecot/core] 35c136: lib: unichar: Add uni_utf8_data_truncate().

GitHub noreply at github.com
Thu Jun 28 23:30:05 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 35c136daea614a55ac7542c27148beb15e58434d
      https://github.com/dovecot/core/commit/35c136daea614a55ac7542c27148beb15e58434d
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-06-28 (Thu, 28 Jun 2018)

  Changed paths:
    M src/lib/unichar.c
    M src/lib/unichar.h

  Log Message:
  -----------
  lib: unichar: Add uni_utf8_data_truncate().

Returns the size of the data when truncated to be less than or equal to
a specified size, making sure UTF-8 character boundaries are respected.


  Commit: f93ef23770a75e9318805284c320f89e42ef8b5e
      https://github.com/dovecot/core/commit/f93ef23770a75e9318805284c320f89e42ef8b5e
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-06-28 (Thu, 28 Jun 2018)

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

  Log Message:
  -----------
  lib: Add str_truncate_utf8().

It works similar to str_truncate(), but it makes sure the truncated string
remains valid UTF-8.


  Commit: 571a8abd1e21ca178245051c84efd4d38d36eecf
      https://github.com/dovecot/core/commit/571a8abd1e21ca178245051c84efd4d38d36eecf
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-06-28 (Thu, 28 Jun 2018)

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

  Log Message:
  -----------
  lib: str-sanitize: Use uni_utf8_data_truncate().


Compare: https://github.com/dovecot/core/compare/8c09e2720a3b...571a8abd1e21
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list