[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-xnee] Bug 8324: --retype-file option for cnee does not set mode
From: |
Joseph Miele |
Subject: |
[Bug-xnee] Bug 8324: --retype-file option for cnee does not set mode |
Date: |
Sat, 27 Mar 2004 03:15:43 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
The following report has been added as bug #8324.
Version affected: CVS
Steps to reproduce the bug:
1. Create text file /tmp/test.xnee. The contents of the file do not matter.
2. Enter the following command:
cnee --verbose --retype-file /tmp/test.xnee
One of the lines of the verbose output will be: "No mode specified...
leaving".
Cause: Missing call to xnee_set_retyper in file parse.c (directory
cnee/src)
Here is the corrected code segment for parse.c:
else if(xnee_check(argv[i], "--retype-file", "-rtf" ))
{
xnee_set_retyper(xd); /* this is the fix */
if (++i >= argc)
{
xnee_usage(stderr);
xnee_close_down(xd);
exit(XNEE_WRONG_PARAMS);
}
if ( xnee_set_rt_name (xd, argv[i]) != XNEE_OK)
{
xnee_print_error ("Unable to open retype file\n");
xnee_verbose ((xd, "Could not open retype file\n"));
xnee_verbose ((xd, "... leaving\n"));
xnee_close_down(xd);
exit(XNEE_WRONG_PARAMS);
}
continue;
}
Notice the new line designated as the fix. Adding this line solved the
problem for me. Running cnee as indicated in step 2 works correctly with
this change in place.
Please review this code change. If you find the fix acceptable, please
update CVS.
Thank you for your time.
- Joe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-xnee] Bug 8324: --retype-file option for cnee does not set mode,
Joseph Miele <=