mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use to_s instead of fileSystemRepresentation to guard against nil
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
{
|
||||
encoding::type res = _encodingOptions;
|
||||
|
||||
settings_t const& settings = settings_for_path([[[anURL filePathURL] path] fileSystemRepresentation]);
|
||||
settings_t const& settings = settings_for_path(to_s([[anURL filePathURL] path]));
|
||||
if(res.charset() == kCharsetNoEncoding)
|
||||
{
|
||||
res.set_charset(settings.get(kSettingsEncodingKey, kCharsetUTF8));
|
||||
|
||||
Reference in New Issue
Block a user