Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 537848 Details for
Bug 606768
app-admin/ulogd-2.0.5_p20161017[doc] - nsgmls:<OSFD>0:190:12:E: end tag for "DESCRIP" omitted, but its declaration does not permit this
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Python 2 script for generating a test case for possible nsgmls bug
genBugTxt.py (text/x-python), 963 bytes, created by
Anon Emuss
on 2018-06-30 08:19:20 UTC
(
hide
)
Description:
Python 2 script for generating a test case for possible nsgmls bug
Filename:
MIME Type:
Creator:
Anon Emuss
Created:
2018-06-30 08:19:20 UTC
Size:
963 bytes
patch
obsolete
>#!/usr/bin/python >''' >Generates a simple .txt file that demonstrates a bug in nsgmls. >''' > >import os,sys > >dataStart='''\ ><!doctype linuxdoc system> > ><article> > ><title/> ><author/> > ><sect>Section ><p> >''' > >dataFill='''\ >Random filler text here. >''' > >dataEnd='''\ > ></article> >''' > >def main(argv): > if(1>=len(argv)): > print('Need an output filename.') > sys.exit(0) > path=argv[1] > > # Create the file. > fileHandle=open(path,'wb') > > # Get the block size. > blockSize=os.stat(path).st_blksize > print('Detected block size: {bs:d}'.format(bs=blockSize)) > > # Write data to exceed blockSize before dataEnd. > fileHandle.write(dataStart) > while(True): > fileHandle.write(dataFill) > fileHandle.flush() > if(os.stat(path).st_size>blockSize): > break > fileHandle.write(dataEnd) > fileHandle.close() > > # Print stuff for the user. > print('Wrote {p:s} (size: {b:d} bytes).'.format( > p=path,b=os.stat(path).st_size)) ># End of main(). > >if(__name__=='__main__'): > main(sys.argv)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 606768
:
460874
|
460876
|
480596
|
480598
|
480602
|
482990
| 537848 |
537850
|
539722