<?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>63234</bug_id>
          
          <creation_ts>2011-06-23 01:49:17 -0700</creation_ts>
          <short_desc>line ending strip suggestion in KeywordLookupGenerator.py</short_desc>
          <delta_ts>2019-06-06 04:01:43 -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>PC</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>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Cameron Wong">hgneng</reporter>
          <assigned_to name="Justin Haygood">jhaygood</assigned_to>
          <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jhaygood</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>pkasting</cc>
    
    <cc>siddhubadhe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>426021</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron Wong">hgneng</who>
    <bug_when>2011-06-23 01:49:17 -0700</bug_when>
    <thetext>Hi, I am trying to build Webkit in Cygwin. The source is checkout with TortoiseSVN. When I run build-webkit, KeywordLookupGenerator.py throws error of &quot;expected description ending with @end&quot;. I think it&apos;s a line ending issue. I suggest making a small improvement in this script:

In about line 68:
    if not terminator == &quot;@end&quot;

Change it to:
    if not terminator.rstrip() == &quot;@end&quot;

It works for me currently although I am trying to fix another compiling issues...

Thanks a lot!

Cameron Wong</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426339</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-23 12:03:32 -0700</bug_when>
    <thetext>Does making this change alone fix the build for you? &lt;http://www.webkit.org/building/checkout.html&gt; says that one should use cygwin version of svn, and I thought that a lot would break if TortoiseSVN (or another client that changes line endings) were used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426348</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-06-23 12:12:36 -0700</bug_when>
    <thetext>I think it is highly likely that there are lots of line-ending-related issue to be found if you use a non-Cygwin version of Subversion. But it would be nice to make it work! Peter Kasting did some work in this area a while back; he may know more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426350</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-06-23 12:15:57 -0700</bug_when>
    <thetext>In general I think it&apos;s a good things to make scripts able to handle both CR and CRLF.  I fixed enough issues long ago that I think there shouldn&apos;t be all that many remaining, but I would imagine they also creep in over time.

I&apos;m not going to post a patch for this particular case because I don&apos;t know python, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426726</commentid>
    <comment_count>4</comment_count>
    <who name="Cameron Wong">hgneng</who>
    <bug_when>2011-06-23 22:07:23 -0700</bug_when>
    <thetext>&gt; Does making this change alone fix the build for you?

No. Besides adding rstrip() in KeywordLookupGenerator.py, I also added following setting in Cygwin.bat before launching bash. This can fix the issue of failing to run shell scripts before of bad line ending.
    set SHELLOPTS=igncr

Then, I got error of non-ASCII character in:
    Source\WebCore\platform\DefaultLocalizationStrategy.cpp

I changed the non-ASCII string into English. There is another file (forget the filename) that is non-ASCII character, but I could&apos;t find with my eye. So I re-saved that file in ASCII-only format.

Now `build-webkit --debug` is successfully finish running although I am trying to figuring out how to `debug-safari`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427007</commentid>
    <comment_count>5</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-06-24 11:27:48 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Then, I got error of non-ASCII character in:
&gt;     Source\WebCore\platform\DefaultLocalizationStrategy.cpp
&gt; 
&gt; I changed the non-ASCII string into English. There is another file (forget the filename) that is non-ASCII character, but I could&apos;t find with my eye. So I re-saved that file in ASCII-only format.

Can you file a separate bug for these cases?  We should fix these regardless; embedded Unicode (or other encodings) can cause various problems for particular build environments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427304</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron Wong">hgneng</who>
    <bug_when>2011-06-24 21:03:15 -0700</bug_when>
    <thetext>&gt; Then, I got error of non-ASCII character in:
&gt;     Source\WebCore\platform\DefaultLocalizationStrategy.cpp
&gt;Can you file a separate bug for these cases?

I&apos;ve open a ticket for it
https://bugs.webkit.org/show_bug.cgi?id=63375</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870500</commentid>
    <comment_count>7</comment_count>
      <attachid>196798</attachid>
    <who name="Justin Haygood">jhaygood</who>
    <bug_when>2013-04-07 12:24:57 -0700</bug_when>
    <thetext>Created attachment 196798
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870834</commentid>
    <comment_count>8</comment_count>
      <attachid>196798</attachid>
    <who name="Justin Haygood">jhaygood</who>
    <bug_when>2013-04-08 10:15:58 -0700</bug_when>
    <thetext>Comment on attachment 196798
Patch

Requesting commit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870872</commentid>
    <comment_count>9</comment_count>
      <attachid>196798</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-04-08 10:49:29 -0700</bug_when>
    <thetext>Comment on attachment 196798
Patch

Clearing flags on attachment: 196798

Committed r147934: &lt;http://trac.webkit.org/changeset/147934&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870873</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-04-08 10:49:32 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542345</commentid>
    <comment_count>11</comment_count>
    <who name="Siddhu">siddhubadhe</who>
    <bug_when>2019-06-06 04:01:43 -0700</bug_when>
    <thetext>I was facing the same bug in Ubuntu, even after the patch for cygwin.

In my case the CR-LF line endings were added to all the files in the repo.

So I faced this problem in shebang for the build script file too.

Temporarily resolved the issue by commenting the check for cygwin.

Will converting the CR-LF to LF work on windows?

In that case, there won&apos;t be any need for the platform check, i.e. regardless of the platform, the CR-LF, if present, will be converted to LF.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>196798</attachid>
            <date>2013-04-07 12:24:57 -0700</date>
            <delta_ts>2013-04-08 10:49:28 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-63234-20130407152435.patch</filename>
            <type>text/plain</type>
            <size>1451</size>
            <attacher name="Justin Haygood">jhaygood</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTQ3ODcyKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBA
CisyMDEzLTA0LTA3ICBKdXN0aW4gSGF5Z29vZCAgPGpoYXlnb29kQHJlYWt0aXguY29tPgorCisg
ICAgICAgIEFsbG93IEt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CJcbiIpCiAgICAg
bGluZXMgPSBbbGluZS5zcGxpdCgiIyIpWzBdIGZvciBsaW5lIGluIGxpbmVzXQogICAgIGxpbmVz
ID0gW2xpbmUgZm9yIGxpbmUgaW4gbGluZXMgaWYgKG5vdCBhbGxXaGl0ZXNwYWNlKGxpbmUpKV0K
ICAgICBuYW1lID0gbGluZXNbMF0uc3BsaXQoKQogICAgIHRlcm1pbmF0b3IgPSBsaW5lc1stMV0K
KwogICAgIGlmIG5vdCBuYW1lWzBdID09ICJAYmVnaW4iOgogICAgICAgICByYWlzZSBFeGNlcHRp
b24oImV4cGVjdGVkIGRlc2NyaXB0aW9uIGJlZ2lubmluZyB3aXRoIEBiZWdpbiIpCiAgICAgaWYg
bm90IHRlcm1pbmF0b3IgPT0gIkBlbmQiOgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>