1. 20 Jun, 2019 1 commit
  2. 19 Jun, 2019 1 commit
    • poljar's avatar
      _compat: Change the to_native_str into a to_unicode_str function. · 5e24c605
      poljar authored
      The to_native_str function was supposed to produce Unicode decoded
      native strings for python2 and python3.
      
      Upon further consideration this doesn't make much sense since under
      python2 it would need to decode the bytes into a Unicode string and turn
      it back into a python2 str.
      
      The ability to use the replacement character requires us to use a
      Unicode string under python2 as well.
      5e24c605
  3. 18 Jun, 2019 1 commit
    • poljar's avatar
      olm: Allow decryption functions to define how to handle unicode decode errors. · 2f5590bf
      poljar authored
      This patch changes the decryption functions not to fail if there was an
      unicode decode error while converting the decrypted bytes plaintext into
      a native python string.
      
      Characters that cannot be decoded as unicode are now replaced with the
      unicode replacement character (U+FFFD).
      
      The old behaviour of raising an UnicodeDecodeError can be achieved by
      passing the "strict" error handling scheme to the decrypt function.
      2f5590bf
  4. 16 Oct, 2018 2 commits
  5. 15 Oct, 2018 1 commit
  6. 18 Jul, 2018 2 commits
  7. 18 Apr, 2017 1 commit
  8. 04 Apr, 2017 1 commit
  9. 02 Oct, 2016 1 commit
  10. 20 May, 2016 1 commit