[
https://issues.apache.org/jira/browse/XALANC-692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steven J. Hathaway closed XALANC-692.
-------------------------------------
Resolution: Won't Fix
> stricmp is missing in some operating systems
> ---------------------------------------------
>
> Key: XALANC-692
> URL: https://issues.apache.org/jira/browse/XALANC-692
> Project: XalanC
> Issue Type: Bug
> Components: XalanC
> Affects Versions: 1.10
> Environment: OpenSolaris x86
> Reporter: Meena
> Assignee: David Bertoni
> Attachments: XALANC-692.patch
>
>
> This patch works :
> $cat dom2dom.cpp.patch perf.cpp.patch
> --- ./xml-xalan/c/Tests/Dom2Dom/dom2dom.cpp 2008-08-21 09:30:15.549225851
> +0530
> +++ ./xml-xalan/c/Tests/Dom2Dom/dom2dom.cpp.new 2008-08-21 09:30:15.581378120
> +0530
> @@ -142,7 +142,7 @@
> // Get the rest of the arguments in any order.
> for (int i = 2; i < argc && fSuccess == true; ++i)
> {
> - if(!stricmp("-out", argv[i]))
> + if(!strcasecmp("-out", argv[i]))
> {
> ++i;
> if(i < argc && argv[i][0] != '-')
> --- ./xml-xalan/c/Tests/Performance/perf.cpp 2008-08-21 09:30:15.573607941
> +0530
> +++ ./xml-xalan/c/Tests/Performance/perf.cpp.new 2008-08-21
> 09:30:15.590926855 +0530
> @@ -198,7 +198,7 @@
> int i = 1;
> while (i < argc)
> {
> - if (stricmp(argv[i],"-test") == 0)
> + if (strcasecmp(argv[i],"-test") == 0)
> {
> ++i;
> if (i >= argc)
> @@ -209,7 +209,7 @@
> }
> testDirectory.assign(argv[i]);
> }
> - else if (stricmp(argv[i],"-result") == 0)
> + else if (strcasecmp(argv[i],"-result") == 0)
> {
> ++i;
> if (i >= argc)
> @@ -220,7 +220,7 @@
> }
> resultDirectory.assign(argv[i]);
> }
> - else if (stricmp(argv[i],"-baseline") == 0)
> + else if (strcasecmp(argv[i],"-baseline") == 0)
> {
> ++i;
> if (i >= argc)
> @@ -231,7 +231,7 @@
> }
> baselineDirectory.assign(argv[i]);
> }
> - else if (stricmp(argv[i],"-report") == 0)
> + else if (strcasecmp(argv[i],"-report") == 0)
> {
> ++i;
> if (i >= argc)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]