Skip to content

Conversation

@austindrenski
Copy link
Contributor

See: 672#issuecomment-431682630
Copy link
Contributor

@YohDeadfall YohDeadfall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some files contains encoding preamble, but others not. Could you fix it?

@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this header be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed that was an unintended artifact of some earlier copy/paste, but I guess it could be needed...

@roji Thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the .NET foundation license headers are a copy-paste mistake (we're not part of the foundation). I say let's remove them all and just leave the LICENSE at the project root...

@austindrenski
Copy link
Contributor Author

@YohDeadfall wrote:

Looks like some files contains encoding preamble, but others not. Could you fix it?

I'm happy to fix it....but any advice on how to do so without editing each file manually?

@austindrenski austindrenski self-assigned this Oct 21, 2018
@YohDeadfall
Copy link
Contributor

Using StreamWriter and some console app? (:

@austindrenski
Copy link
Contributor Author

At the risk of showing my tenuous familiarity with encodings...

It looks like they are all (already) set as UTF-8. It seems like the diff shows some deleted/re-inserted based on how I edited the files.

This is just a hunch, but I think the files where the BOM was deleted/re-inserted are the files that opened in Rider with their license blocks already collapsed (which I then deleted while collapsed). Perhaps in that case rider deletes (then re-inserts) the preamble?

@austindrenski
Copy link
Contributor Author

If no one objects, I'm planning to merge this at 1 PM UTC today. Just post back if you want me to hold off for any reason.

@austindrenski austindrenski merged commit 8e97e41 into npgsql:dev Oct 23, 2018
@austindrenski austindrenski deleted the remove-license-blocks branch October 23, 2018 13:26
@roji roji added cleanup and removed refactor labels May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants