I pushed two commits that should improve this quite a bit.
1) pastebinit will now ignore any pastebin configuration file it can't read
because of encoding errors (in this case, the Chinese Ubuntu pastebin contained
utf-8 characters for the submit button).
2) pastebinit will now read input files in raw byte mode and not attempt
decoding, so it can submit utf-8 encoded files even if it's not itself running
under an utf-8 locale
I won't however add a specific check for an utf-8 locale because while
that's easy to do on Linux, it's not so much easy when you also need to
support Windows, MacOS, ...
** Changed in: pastebinit (Ubuntu)
Status: New => Fix Committed
** Changed in: pastebinit (Ubuntu)
Status: Fix Committed => Triaged
** Changed in: pastebinit (Ubuntu)
Importance: Undecided => Low
** Changed in: pastebinit
Status: New => Triaged
** Changed in: pastebinit
Importance: Undecided => Medium
** Changed in: pastebinit
Status: Triaged => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1270359
Title:
test locale for Unicode support
To manage notifications about this bug go to:
https://bugs.launchpad.net/pastebinit/+bug/1270359/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs