Padding at the end of models .ini files

More
13 Sep 2015 15:35 - 13 Sep 2015 15:42 #37716 by ethernode
Padding at the end of models .ini files was created by ethernode
Hello,

Newbie here; i noticed that there is some zero padding in the end of ini files that is apparently being added by deviationtx itself when editing a model; while i don't really care, it makes gedit not happy at all (trying to guess the character encoding of this null padding). Out of curiosity, why is it happening ? Is there any way to avoid it ?
$ hexdump -C inductrix_indoor.ini 
00000000  6e 61 6d 65 3d 49 6e 64  75 63 74 72 69 78 20 69  |name=Inductrix i|
00000010  6e 64 6f 6f 72 0a 6d 69  78 65 72 6d 6f 64 65 3d  |ndoor.mixermode=|
00000020  41 64 76 61 6e 63 65 64  0a 69 63 6f 6e 3d 49 4e  |Advanced.icon=IN|
00000030  44 55 43 54 2e 42 4d 50  0a 5b 72 61 64 69 6f 5d  |DUCT.BMP.[radio]|
00000040  0a 70 72 6f 74 6f 63 6f  6c 3d 44 53 4d 58 0a 6e  |.protocol=DSMX.n|
00000050  75 6d 5f 63 68 61 6e 6e  65 6c 73 3d 36 0a 74 78  |um_channels=6.tx|
00000060  5f 70 6f 77 65 72 3d 31  35 30 6d 57 0a 0a 5b 70  |_power=150mW..[p|
00000070  72 6f 74 6f 63 6f 6c 5f  6f 70 74 73 5d 0a 54 65  |rotocol_opts].Te|
[...]
00000670  54 78 50 6f 77 65 72 3d  31 30 32 2c 37 0a 71 75  |TxPower=102,7.qu|
00000680  69 63 6b 70 61 67 65 31  3d 43 68 61 6e 6e 65 6c  |ickpage1=Channel|
00000690  20 6d 6f 6e 69 74 6f 72  0a 00 00 00 00 00 00 00  | monitor........|
000006a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00003000  00 00 00 00 00 00 00 00  00 0a 00 00 00 00 00 00  |................|
00003010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00003ff0  00 00 00 00 00 00 00 00  00 00 00 00 00 0a 00 0a  |................|
00004000
Last edit: 13 Sep 2015 15:42 by ethernode.

Please Log in or Create an account to join the conversation.

More
14 Sep 2015 16:13 #37764 by greenfly
Replied by greenfly on topic Padding at the end of models .ini files
This is normal.
I could not find a way for Gedit to open them directly without the warning. It depends on the editor... Notepad++ in Windows does not have a problem with the trailing nulls.

I actually solved the issue with my utility here . It trims the nulls prior to opening the INI file.

Please Log in or Create an account to join the conversation.

More
15 Sep 2015 10:26 #37779 by ethernode
Replied by ethernode on topic Padding at the end of models .ini files
Okay thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds
Powered by Kunena Forum