[MERGE] More robust handling of encoding issues in tests.
Martin von Gagern
Martin.vGagern at gmx.net
Mon Jul 7 10:56:58 BST 2008
Yet another patch extracted from my setlocale branch.
Problems with encoding errors could lead to not only single tests
failing but the whole selftest process crashing. The introduction of
safe strings as a fallback in case of trouble avoids most of these
problems. The safe strings try to maintain as much information as
possible while using only ASCII characters. This is achieved by
formatting the strings using escape sequences.
This modification only changes how certain test results are displayed
to the user. There is no change to the semantics of these tests, so a
test that used to fail before will still continue to fail. Hopefully if
it does fail it is more likely that the test suite will continue with
the next test and not abort due to some exception displaying the error.
Greetings,
Martin von Gagern
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: encodingSafeTests-3527.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20080707/bfbe3fd2/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080707/bfbe3fd2/attachment.pgp
More information about the bazaar
mailing list