commit | b673f911c9a401422d0fc09d432fb0b87f5bf057 | [log] [tgz] |
---|---|---|
author | Alex Fandrianto <alexfandrianto@google.com> | Fri Jul 22 15:38:03 2016 -0700 |
committer | Alex Fandrianto <alexfandrianto@google.com> | Fri Jul 22 15:38:03 2016 -0700 |
tree | 35d520094deb14108040e71cfdda319d4f08091d | |
parent | be1aa2e6de14ae5d86795794485074ce6988b3ce [diff] |
x/ref: cgo Errors escape non-utf8 runes Java in particular is extremely upset by characters like 0xfe. So much so that it will crash, so we are going to replace such invalid characters with the Unicode unknown character. In order to help find out the root cause of these invalid characters, I have added: - panic on normal strings if they have an invalid char. This should never actually happen, so it's worth panicking. - vlog.Errorf for the error messages and stacks. We escape these for now, since we know of multiple errors that might lead to an invalid character in these strings. Change-Id: Ic1e0f19c6f62324dd7bf56ec6aee5a9cd07eab74
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.