mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04: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