Permalink
Browse files

Match the UTF-8 constant from Encoding

  • Loading branch information...
1 parent 4a226c7 commit 0601533618ab64a382a300f9be12d75f3677a637 @drbrain committed Mar 25, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/pasteboard/type.rb
  2. +1 −1 sample/image.rb
View
2 lib/pasteboard/type.rb
@@ -79,7 +79,7 @@ module Pasteboard::Type
# Unicode-8
PLAIN_TEXT_UTF8 = 'public.utf8-plain-text'
- UTF8 = PLAIN_TEXT_UTF8
+ UTF_8 = PLAIN_TEXT_UTF8
Encodings[PLAIN_TEXT_UTF8] = Encoding::UTF_8 if encoding
# Unicode-16 with byte-order mark (BOM), or if BOM is not present, an
View
2 sample/image.rb
@@ -102,7 +102,7 @@
[Pasteboard::Type::TIFF, troll_tiff],
[Pasteboard::Type::URL, troll_url],
[Pasteboard::Type::URL_NAME, 'trollface'],
- [Pasteboard::Type::UTF8, troll_url],
+ [Pasteboard::Type::UTF_8, troll_url],
]
pb.put item

0 comments on commit 0601533

Please sign in to comment.