<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>45651</bug_id>
          
          <creation_ts>2010-09-13 03:56:58 -0700</creation_ts>
          <short_desc>jscPath() is incorrect in Windows&apos; cmd.exe shell</short_desc>
          <delta_ts>2010-09-13 09:18:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>kenneth</cc>
    
    <cc>kling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>278107</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 03:56:58 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/63463 broke run-javascriptore-tests,
run-sunspider, ... scripts with QtWebKit on Windows, because
$productDir/$jscName isn&apos;t exist, but $productDir/$jscName.exe.

exe suffix is neccessary when you test file existance,
but unneccessary when you execute the binarty.

http://trac.webkit.org/changeset/63463:
-    return &quot;$productDir/$jscName&quot;;
+    return &quot;$productDir/$jscName&quot; if -e &quot;$productDir/$jscName&quot;;
+    return &quot;$productDir/JavaScriptCore.framework/Resources/$jscName&quot;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278109</commentid>
    <comment_count>1</comment_count>
      <attachid>67394</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 03:59:46 -0700</bug_when>
    <thetext>Created attachment 67394
proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278148</commentid>
    <comment_count>2</comment_count>
      <attachid>67394</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-13 05:39:57 -0700</bug_when>
    <thetext>Comment on attachment 67394
proposed fix

&gt; +    $jscName .= &quot;.exe&quot;  if (isQt() &amp;&amp; isWindows());

This doesn&apos;t strike me as a Qt-specific issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278178</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 06:38:46 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 67394 [details])
&gt; &gt; +    $jscName .= &quot;.exe&quot;  if (isQt() &amp;&amp; isWindows());
&gt; 
&gt; This doesn&apos;t strike me as a Qt-specific issue.

It shouldn&apos;t be Qt specific issue, but I&apos;m not sure.

On Apple Windows port run-javascriptcore-tests works correctly,
it seems the file existance check works without &quot;exe&quot; suffix
inside cygwin. I will check it ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278211</commentid>
    <comment_count>4</comment_count>
      <attachid>67394</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 08:00:31 -0700</bug_when>
    <thetext>Comment on attachment 67394
proposed fix

new patch is coming soon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278224</commentid>
    <comment_count>5</comment_count>
      <attachid>67413</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 08:24:59 -0700</bug_when>
    <thetext>Created attachment 67413
proposed fix

proposed fix:
+    $jscName .= &quot;.exe&quot; if (isWindows() || isCygwin());

The root of the problem was that &apos; if -e &quot;executableBinary&quot; &apos; is false 
with ActiveState perl on Windows in cmd.exe shell, but true in CygWin 
shell if executableBinary.exe exist, but executableBinary doesn&apos;t.

It is a misleading perl feature what we should avoid, so I 
propose to add &quot;.exe&quot; suffix for Windows and CygWin platform too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278233</commentid>
    <comment_count>6</comment_count>
      <attachid>67413</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-13 09:00:40 -0700</bug_when>
    <thetext>Comment on attachment 67413
proposed fix

Nice detective work :)
r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278242</commentid>
    <comment_count>7</comment_count>
      <attachid>67413</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 09:18:03 -0700</bug_when>
    <thetext>Comment on attachment 67413
proposed fix

Clearing flags on attachment: 67413

Committed r67391: &lt;http://trac.webkit.org/changeset/67391&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278243</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-13 09:18:12 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67394</attachid>
            <date>2010-09-13 03:59:46 -0700</date>
            <delta_ts>2010-09-13 08:24:59 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>1.patch</filename>
            <type>text/plain</type>
            <size>1148</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL1NjcmlwdHMvd2Via2l0ZGlycy5wbQo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBX
ZWJLaXRUb29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5jZ2k/aWQ9NDU2NTEKKworICAgICAgICAqIFNjcmlw
dHMvd2Via2l0ZGlycy5wbTogQWRkICIuZXhlIiBzdWZmaXggdG8gJGpzY05hbWUgb24gV2luZG93
cy4KKwogMjAxMC0wOC0yNyAgS2VubmV0aCBSb2hkZSBDaHJpc3RpYW5zZW4gIDxrZW5uZXRoLmNo
cmlzdGlhbnNlbkBvcGVuYm9zc2Eub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IEFudHRpIEtv
aXZpc3RvLgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67413</attachid>
            <date>2010-09-13 08:24:59 -0700</date>
            <delta_ts>2010-09-13 09:18:03 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>1.patch</filename>
            <type>text/plain</type>
            <size>1149</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDY3Mzg3KQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMDktMTMgIENzYWJhIE9zenRyb2dvbsOh
YyAgPG9zc3lAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMh
KS4KKworICAgICAgICBqc2NQYXRoKCkgaXMgaW5jb3JyZWN0IGluIFdpbmRvd3MnIGNtZC5leGUg
c2hlbGwKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQ1
NjUxCisKKyAgICAgICAgKiBTY3JpcHRzL3dlYmtpdGRpcnMucG06IEFkZCAiLmV4ZSIgc3VmZml4
IHRvICRqc2NOYW1lIG9uIFdpbmRvd3MuCisKIDIwMTAtMDktMTMgIEFuZHJlYXMgS2xpbmcgIDxh
bmRyZWFzLmtsaW5nQG5va2lhLmNvbT4KIAogICAgICAgICBSZXZpZXdlZCBieSBLZW5uZXRoIFJv
aGRlIENocmlzdGlhbnNlbi4KSW5kZXg6IFdlYktpdFRvb2xzL1NjcmlwdHMvd2Via2l0ZGlycy5w
bQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9TY3JpcHRzL3dlYmtpdGRpcnMucG0JKHJldmlz
aW9uIDY3Mzg3KQorKysgV2ViS2l0VG9vbHMvU2NyaXB0cy93ZWJraXRkaXJzLnBtCSh3b3JraW5n
IGNvcHkpCkBAIC0yNTgsNiArMjU4LDcgQEAKICAgICBteSAoJHByb2R1Y3REaXIpID0gQF87CiAg
ICAgbXkgJGpzY05hbWUgPSAianNjIjsKICAgICAkanNjTmFtZSAuPSAiX2RlYnVnIiAgaWYgKGlz
Q3lnd2luKCkgJiYgKCRjb25maWd1cmF0aW9uIGVxICJEZWJ1ZyIpKTsKKyAgICAkanNjTmFtZSAu
PSAiLmV4ZSIgaWYgKGlzV2luZG93cygpIHx8IGlzQ3lnd2luKCkpOwogICAgIHJldHVybiAiJHBy
b2R1Y3REaXIvJGpzY05hbWUiIGlmIC1lICIkcHJvZHVjdERpci8kanNjTmFtZSI7CiAgICAgcmV0
dXJuICIkcHJvZHVjdERpci9KYXZhU2NyaXB0Q29yZS5mcmFtZXdvcmsvUmVzb3VyY2VzLyRqc2NO
YW1lIjsKIH0K
</data>

          </attachment>
      

    </bug>

</bugzilla>