Re: RFC3030

Alessandro Vesely <[email protected]> Sat, 9 Aug 2025 12:22:28 +0200
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On Sat 09/Aug/2025 00:38:02 +0200 JLX2 wrote:
>>
>> It is not allowed.
> of course it's allowed, since a string never end with a NULL char, it's a char 
> added by C to be able to stop string processing, all "text writing/processing 
> functions" are just dropping it... a text file never contains one and binary 
> file neither, because NULL is not allowed value in C, it's a value that is used 
> to trigger CPU errors.

The attached file is a picture created with Gimp.  It contains lots of zeroes 
as its hexdump shows:

00000000  89 50 4e 47 0d 0a 1a 0a  00 00 00 0d 49 48 44 52  |.PNG........IHDR|
00000010  00 00 00 08 00 00 00 08  01 03 00 00 00 fe c1 2c  |...............,|
00000020  c8 00 00 00 03 50 4c 54  45 00 00 00 a7 7a 3d da  |.....PLTE....z=.|
00000030  00 00 00 01 62 4b 47 44  00 88 05 1d 48 00 00 00  |....bKGD....H...|
00000040  09 70 48 59 73 00 00 0b  13 00 00 0b 13 01 00 9a  |.pHYs...........|
00000050  9c 18 00 00 00 07 74 49  4d 45 07 e9 08 09 0a 12  |......tIME......|
00000060  05 b5 ee e5 2b 00 00 00  19 74 45 58 74 43 6f 6d  |....+....tEXtCom|
00000070  6d 65 6e 74 00 43 72 65  61 74 65 64 20 77 69 74  |ment.Created wit|
00000080  68 20 47 49 4d 50 57 81  0e 17 00 00 00 0b 49 44  |h GIMPW.......ID|
00000090  41 54 08 d7 63 60 40 05  00 00 10 00 01 a1 c5 21  |AT..c`@........!|
000000a0  c1 00 00 00 00 49 45 4e  44 ae 42 60 82           |.....IEND.B`.|


Yet, Gimp is written in C.


Best
Ale
--

_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
8x8black.png (image/png, 173 B) - not displayed