xorat / grubutils

Automatically exported from code.google.com/p/grubutils
0 stars 0 forks source link

inifile - section output has \n not \r\n #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When a whole section is printed only a LF (0ah) byte is used between lines
It should be \r\n  or 0dh 0ah.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by Steve6375 on 3 Jul 2013 at 4:37

GoogleCodeExporter commented 9 years ago
Try this.

Original comment by chenall.cn on 4 Jul 2013 at 12:17

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks - I recompiled it anyway!
P.S. Sources for inifile and chkpci seem to be out of date?

Can't find chkpci /u  version???

Original comment by Steve6375 on 4 Jul 2013 at 12:33

GoogleCodeExporter commented 9 years ago
Index: inifile.c
===================================================================
--- inifile.c   (revision 109)
+++ inifile.c   (working copy)
@@ -182,7 +182,7 @@
                                                ret = envi_cmd(s1,s2,0);
                                        }
                                        else
-                                               ret = printf("%s=%s\n",s1,s2);
+                                               ret = printf("%s=%s\r\n",s1,s2);
                                }
                                else if (substring(item,s1,1) == 0)
                                {

How is chkpci /u version?????

Original comment by chenall.cn on 4 Jul 2013 at 2:13

GoogleCodeExporter commented 9 years ago
chkpci Source is old - diff has -h instead of -u  ???

chkpci in DPMS is more recent than on code.google.com ??

Can you put complete latest .c in Source please?

98  \n CHKPCI [-h] [-o] [-u] [-cc:CC] [FILE]\n\
199 \n Options:\n\  199 \n Options:\n\
200 \n -h      show this info.\n\   200 \n -h      show this info.\n\
***201  \n -h      Unique.\n\
201 \n -cc:CC  scan Class Codes with CC only.\n\    202 \n -cc:CC  scan Class 
Codes with CC only.\n\
202 \n FILE    PCI device database file.\n\ 203 \n FILE    PCI device database 
file.\n\

Original comment by Steve6375 on 4 Jul 2013 at 8:29