[Bug 337671] [NEW] python-twitter should count characters not bytes.
Rory McCann
rory at technomancy.org
Wed Mar 4 10:37:14 UTC 2009
Public bug reported:
I wanted to post this as a tweet "Had lighttpd installed ∴ it was
running ∴ apache couldn't restart ∴ roundcube couln't be upgraded ∴
software upgrade keep complaining", notice the ∴ unicode characters.
The tweet command complained that tweet must be under 140 characters.
However that *is* under 140 characters. However it is not under 140
bytes. Those unicode ∴'s are 1 character but are not 1 byte.
echo -n "Had lighttpd installed ∴ it was running ∴ apache couldn't restart ∴ roundcube couln't be upgraded ∴ software upgrade keep complaining" | wc -m
133
echo -n "Had lighttpd installed ∴ it was running ∴ apache couldn't restart ∴ roundcube couln't be upgraded ∴ software upgrade keep complaining" | wc -c
141
As proof, the twitter web interface does support this as a tweet:
http://twitter.com/lalonde/status/1278018325
The error message I was getting was:
tweet "Had lighttpd installed ∴ it was running ∴ apache couldn't restart ∴ roundcube couln't be upgraded ∴ software upgrade keep complaining"
Traceback (most recent call last):
File "/usr/bin/tweet", line 116, in <module>
main()
File "/usr/bin/tweet", line 108, in main
status = api.PostUpdate(message)
File "/var/lib/python-support/python2.5/twitter.py", line 1049, in PostUpdate
raise TwitterError("Text must be less than or equal to 140 characters.")
twitter.TwitterError: Text must be less than or equal to 140 characters.
** Affects: python-twitter (Ubuntu)
Importance: Undecided
Status: New
--
python-twitter should count characters not bytes.
https://bugs.launchpad.net/bugs/337671
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list