[TxMt] Re: [Bug] Ellipses ('…') being saved as '‚Ķ'
Kalcifer Kandari
kalciferkandari at gmail.com
Wed Oct 14 11:19:15 UTC 2015
Bugged: xxd '/Users/user/test.txt' > '/Users/user/xxd'
Not bugged: xxd '/Users/user/test2.txt' > '/Users/user/xxd2'
After closing and opening 'test.txt' again and clicking 'File -> Save As…' turns out the encoding is 'Chinese - GB18030', even though the encoding is set to 'Unicode - UTF-8' in the settings.
What may have happened is that documents were being created by something other than TextMate with 'Western (Mac OS Roman)' encoding, but when opened with TextMate, it was not converting them to UTF-8 properly, or detecting that they had a different encoding. TextMate should detect the encoding and when saving should either convert to whatever the 'Preferences' encoding is, or save in the same encoding the file was originally opened in.
Attempted to replicate the bug with documents created in TextMate but couldn't. Created a document in another application with UTF-8 encoding, and then opened and saved in TextMate with the same encoding and it saved properly.
> On 14 Oct 2015, at 11:15, Allan Odgaard <mailinglist at textmate.org> wrote:
>
> On 14 Oct 2015, at 17:00, Kalcifer Kandari wrote:
>
>> Just replicated the bug again with a clean install (including all defaults reverted), here are the exact steps to replicate (using TextMate version 2 beta 8):
>> create new file
>> press alt+; for the ellipses
>> press cmd+s to save
>> close file
>> reopen
>
> Once you have saved the file, can you run this in a terminal:
>
> xxd /path/to/file
>
> Also, after re-opening the file, can you try use Save As… (⇧⌘S) and tell me what is shown as encoding?
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.txt
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xxd
Type: application/octet-stream
Size: 54 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment-0002.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test2.txt
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xxd2
Type: application/octet-stream
Size: 54 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151014/0ed55a09/attachment-0004.html>
More information about the textmate
mailing list