Re: Content of new text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 07/14/2011 06:19 AM, Paul Gideon Dann wrote:
On Wednesday 13 Jul 2011 15:00:37 Squall Lionheart wrote:
When using Dolphin in KDE4 to *Create New>  Text File...* the new file is
not empty, it contains a space and a newline character.

I wonder if that's to do with MIME types?  With a space and a newline, the file
is detected by "file" as ASCII text rather than "empty".  A single newline is
detected as "very short file (no magic)", so probably the space-newline combo
is the shortest file that can be automatically detected as text.

Paul

Ah, that makes a lot of sense now.  Thanks for the info.

DR


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux