mirror of
https://github.com/textmate/textmate.git
synced 2026-01-13 16:57:56 -05:00
Apple writes the encoding charset (e.g., com.apple.TextEncoding) in all lowercase (at least since macOS 10.9); however, TextMate assumes that the encoding will always be uppercase. So in order to avoid any issues with case mismatches, when setting the charset, uppercase the given string. See http://lists.macromates.com/textmate/2018-April/040602.html