'Verify the pretty-printing of unicode strings'

def test_strings(self):

    encoding = locale.getpreferredencoding()
    def check_repr(text):
        try:
            text.encode(encoding)
            printable = True
        except UnicodeEncodeError:
            self.assertGdbRepr(text, ascii(text))
        else:
            self.assertGdbRepr(text)
    self.assertGdbRepr('')
    self.assertGdbRepr('And    now    for    something    hopefully    the    same')
    self.assertGdbRepr('string    with    embedded    NUL    here    \x00    and    then    some    more    text')
    check_repr('\\u2620')
    check_repr('\\u6587\\u5b57\\u5316\\u3051')
    check_repr(chr(119073))
