Bug 184341 - [test262] Mark line-terminator-normalisation-CR.js as a binary file.
Summary: [test262] Mark line-terminator-normalisation-CR.js as a binary file.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ross Kirsling
URL:
Keywords: InRadar
Depends on:
Blocks: 184266
  Show dependency treegraph
 
Reported: 2018-04-05 15:45 PDT by Ross Kirsling
Modified: 2018-04-06 09:26 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.08 KB, patch)
2018-04-05 15:50 PDT, Ross Kirsling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Kirsling 2018-04-05 15:45:06 PDT
[test262] Mark line-terminator-normalisation-CR.js as a binary file.
Comment 1 Ross Kirsling 2018-04-05 15:50:01 PDT
Created attachment 337307 [details]
Patch
Comment 2 Yusuke Suzuki 2018-04-05 19:13:03 PDT
Comment on attachment 337307 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2018-04-05 19:38:46 PDT
Comment on attachment 337307 [details]
Patch

Clearing flags on attachment: 337307

Committed r230320: <https://trac.webkit.org/changeset/230320>
Comment 4 WebKit Commit Bot 2018-04-05 19:38:47 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2018-04-05 19:39:19 PDT
<rdar://problem/39228555>
Comment 6 Alexey Proskuryakov 2018-04-05 19:46:54 PDT
Does this need to be fixed for svn too? One can directly specify cr line endings for svn, no need to revert to binary.
Comment 7 Yusuke Suzuki 2018-04-05 20:24:07 PDT
(In reply to Alexey Proskuryakov from comment #6)
> Does this need to be fixed for svn too? One can directly specify cr line
> endings for svn, no need to revert to binary.

I checked .gitattributes change like https://bugs.webkit.org/show_bug.cgi?id=58315 and I cannot find any SVN property changes in that patch.
But specifying `svn propset svn:mime-type application/octet-stream file` would be nice. Do we have the way to do the above thing in git WebKit tree?
Comment 8 Yusuke Suzuki 2018-04-05 20:31:14 PDT
(In reply to Yusuke Suzuki from comment #7)
> (In reply to Alexey Proskuryakov from comment #6)
> > Does this need to be fixed for svn too? One can directly specify cr line
> > endings for svn, no need to revert to binary.
> 
> I checked .gitattributes change like
> https://bugs.webkit.org/show_bug.cgi?id=58315 and I cannot find any SVN
> property changes in that patch.
> But specifying `svn propset svn:mime-type application/octet-stream file`
> would be nice. Do we have the way to do the above thing in git WebKit tree?

Hmmmm, git-svn do not have the way to set prop............. https://stackoverflow.com/questions/1271449/how-to-set-subversion-properties-with-git-svn
Comment 9 Yusuke Suzuki 2018-04-05 20:39:56 PDT
BTW, I'm now attempting to apply https://bugs.webkit.org/show_bug.cgi?id=184266 to my git-managed WebKit tree by Tools/Scripts/webkit-patch apply-from-bug. If this patch is effective, we will get it applied.
Comment 10 Ross Kirsling 2018-04-05 20:51:29 PDT
(In reply to Alexey Proskuryakov from comment #6)
> Does this need to be fixed for svn too? One can directly specify cr line
> endings for svn, no need to revert to binary.

Ah yes, seems like we ought to do something like this for good measure: https://trac.webkit.org/changeset/199564/webkit

Unfortunately though, since `svn-apply` can't handle files with CR line endings (due to performing its own line ending normalization based on the first line ending it encounters in the patch), I think marking it as binary is the only way to ensure its contents don't appear in the patch file?

(In reply to Yusuke Suzuki from comment #9)
> BTW, I'm now attempting to apply
> https://bugs.webkit.org/show_bug.cgi?id=184266 to my git-managed WebKit tree
> by Tools/Scripts/webkit-patch apply-from-bug. If this patch is effective, we
> will get it applied.

Note that the existing patch on that bug won't work -- we need a new diff of the same changes, which will then treat this file as binary.
Comment 11 Alexey Proskuryakov 2018-04-05 21:29:17 PDT
I don't think we ever needed to use binary for text files with svn, adding svn:eol-style should just work I hope.
Comment 12 Ross Kirsling 2018-04-05 23:23:52 PDT
Oh geez. I just realized that the problem isn't svn-apply's fault at all -- it's that the offending file ends in CRLF.

Just confirmed that the file can be patched normally if this is corrected, so I think we can just rollout the change in this bug.
Comment 13 Ross Kirsling 2018-04-05 23:56:52 PDT
Reverted r230320 for reason:

Revert

Committed r230329: <https://trac.webkit.org/changeset/230329>
Comment 14 Alexey Proskuryakov 2018-04-06 09:26:29 PDT
I added the svn property in r230333 nonetheless.