Skip to content
  • Alex Vandiver's avatar
    Always log bytes, not characters · a275a7fa
    Alex Vandiver authored
    Ensure that we always send UTF-8 encoded bytes to loggers, and not wide
    characters.  This is correctly done via an explicit call to
    Encode::encode, and not via checks of utf8::is_utf8 (which may be false
    for character strings with codepoints > 127 but < 256), and not via
    _utf8_off (which would fail similarly for such characters).
    a275a7fa