diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-29 09:52:35 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-31 15:08:37 -0700 |
commit | 4152f7b185bc7f6fb2ebc945f3a2e2117dabf365 (patch) | |
tree | 0a4f0f76b23929742386acbec0a4cc53f7c5c83b | |
parent | 01855d5bc5bcc554d3456355bbd9228e58b4fdd7 (diff) |
glapi: encode python files in utf-8 rather than ascii
This allows, among other things, the proper use of the Copyright symbol
in the copyright header (which this patch also does).
It cannot be used in the printed templates however, because they are
printed, not directly written to a file. If a user doesn't have a UTF-8
locale (or has an operating system that doesn't have UTF-8 support)
then that would fail.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
-rw-r--r-- | src/mapi/glapi/gen/apiexec.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/glX_XML.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_common.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_recv.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_send.py | 5 | ||||
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_size.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/glX_server_table.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_SPARC_asm.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_XML.py | 4 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_apitemp.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_enums.py | 7 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_genexec.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_gentable.py | 7 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_procs.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_table.py | 5 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_x86-64_asm.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_x86_asm.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/license.py | 4 | ||||
-rw-r--r-- | src/mapi/glapi/gen/remap_helper.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/static_data.py | 3 | ||||
-rw-r--r-- | src/mapi/glapi/gen/typeexpr.py | 3 |
21 files changed, 50 insertions, 27 deletions
diff --git a/src/mapi/glapi/gen/apiexec.py b/src/mapi/glapi/gen/apiexec.py index b4f4cf6831..670dc4a6ad 100644 --- a/src/mapi/glapi/gen/apiexec.py +++ b/src/mapi/glapi/gen/apiexec.py @@ -1,4 +1,5 @@ -# Copyright (C) 2015 Intel Corporation +# encoding=utf-8 +# Copyright © 2015 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), diff --git a/src/mapi/glapi/gen/glX_XML.py b/src/mapi/glapi/gen/glX_XML.py index 6987e27ee0..318fe27053 100644 --- a/src/mapi/glapi/gen/glX_XML.py +++ b/src/mapi/glapi/gen/glX_XML.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/glX_proto_common.py b/src/mapi/glapi/gen/glX_proto_common.py index bcfe00904a..f04e065f84 100644 --- a/src/mapi/glapi/gen/glX_proto_common.py +++ b/src/mapi/glapi/gen/glX_proto_common.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/glX_proto_recv.py b/src/mapi/glapi/gen/glX_proto_recv.py index ec3f7d7838..c557f69020 100644 --- a/src/mapi/glapi/gen/glX_proto_recv.py +++ b/src/mapi/glapi/gen/glX_proto_recv.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2005 +# © Copyright IBM Corporation 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py index 5904b338f1..dc05ebab19 100644 --- a/src/mapi/glapi/gen/glX_proto_send.py +++ b/src/mapi/glapi/gen/glX_proto_send.py @@ -1,8 +1,9 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. -# Copyright (c) 2015 Intel Corporation +# Copyright © 2015 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), diff --git a/src/mapi/glapi/gen/glX_proto_size.py b/src/mapi/glapi/gen/glX_proto_size.py index b008e9dae1..4598f6120e 100644 --- a/src/mapi/glapi/gen/glX_proto_size.py +++ b/src/mapi/glapi/gen/glX_proto_size.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/glX_server_table.py b/src/mapi/glapi/gen/glX_server_table.py index 5e996eb5c2..7f3cc41820 100644 --- a/src/mapi/glapi/gen/glX_server_table.py +++ b/src/mapi/glapi/gen/glX_server_table.py @@ -1,6 +1,7 @@ #!/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2005, 2006 +# © Copyright IBM Corporation 2005, 2006 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_SPARC_asm.py b/src/mapi/glapi/gen/gl_SPARC_asm.py index 89bccef68d..3306576e2b 100644 --- a/src/mapi/glapi/gen/gl_SPARC_asm.py +++ b/src/mapi/glapi/gen/gl_SPARC_asm.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004 +# © Copyright IBM Corporation 2004 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py index 8c622aa5b7..71b0b62766 100644 --- a/src/mapi/glapi/gen/gl_XML.py +++ b/src/mapi/glapi/gen/gl_XML.py @@ -1,6 +1,8 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# Copyright © IBM Corporation 2004, 2005 +# Copyright © Intel Corporation 2016 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_apitemp.py b/src/mapi/glapi/gen/gl_apitemp.py index 50a599a85e..9a695cbab4 100644 --- a/src/mapi/glapi/gen/gl_apitemp.py +++ b/src/mapi/glapi/gen/gl_apitemp.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index 49cc0bda63..c4e1691af1 100644 --- a/src/mapi/glapi/gen/gl_enums.py +++ b/src/mapi/glapi/gen/gl_enums.py @@ -1,8 +1,9 @@ #!/usr/bin/python2 +# encoding=utf-8 -# (C) Copyright Zack Rusin 2005. All Rights Reserved. -# Copyright (C) 2015 Intel Corporation -# Copyright (C) 2015 Broadcom Corporation +# © Copyright Zack Rusin 2005. All Rights Reserved. +# Copyright © 2015 Intel Corporation +# Copyright © 2015 Broadcom Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py index 4f86bcff78..9374f4110d 100644 --- a/src/mapi/glapi/gen/gl_genexec.py +++ b/src/mapi/glapi/gen/gl_genexec.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# Copyright (C) 2012 Intel Corporation +# Copyright © 2012 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py index 3ca89cdbcd..45c9e47858 100644 --- a/src/mapi/glapi/gen/gl_gentable.py +++ b/src/mapi/glapi/gen/gl_gentable.py @@ -1,8 +1,9 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 -# (C) Copyright Apple Inc. 2011 -# Copyright (C) 2015 Intel Corporation +# © Copyright IBM Corporation 2004, 2005 +# © Copyright Apple Inc. 2011 +# Copyright © 2015 Intel Corporation # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_procs.py b/src/mapi/glapi/gen/gl_procs.py index 685e2fac34..8dd90c83a2 100644 --- a/src/mapi/glapi/gen/gl_procs.py +++ b/src/mapi/glapi/gen/gl_procs.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py index e25971a698..aba3d33d92 100644 --- a/src/mapi/glapi/gen/gl_table.py +++ b/src/mapi/glapi/gen/gl_table.py @@ -1,8 +1,9 @@ #!/usr/bin/python2 +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004 +# © Copyright IBM Corporation 2004 # All Rights Reserved. -# Copyright (c) 2014 Intel Corporation +# Copyright © 2014 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py index d367feb89f..89fabaff7b 100644 --- a/src/mapi/glapi/gen/gl_x86-64_asm.py +++ b/src/mapi/glapi/gen/gl_x86-64_asm.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2005 +# © Copyright IBM Corporation 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/gl_x86_asm.py b/src/mapi/glapi/gen/gl_x86_asm.py index 1a0c0f45a4..a470d2749a 100644 --- a/src/mapi/glapi/gen/gl_x86_asm.py +++ b/src/mapi/glapi/gen/gl_x86_asm.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2004, 2005 +# © Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/license.py b/src/mapi/glapi/gen/license.py index 02181648e4..c7d9451a74 100644 --- a/src/mapi/glapi/gen/license.py +++ b/src/mapi/glapi/gen/license.py @@ -1,4 +1,6 @@ -# (C) Copyright IBM Corporation 2004 +# encoding=utf-8 + +# © Copyright IBM Corporation 2004 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a diff --git a/src/mapi/glapi/gen/remap_helper.py b/src/mapi/glapi/gen/remap_helper.py index 31a6fe44ae..5103b41f5f 100644 --- a/src/mapi/glapi/gen/remap_helper.py +++ b/src/mapi/glapi/gen/remap_helper.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# Copyright (C) 2009 Chia-I Wu <olv@0xlab.org> +# Copyright © 2009 Chia-I Wu <olv@0xlab.org> # All Rights Reserved. # # This is based on extension_helper.py by Ian Romanick. diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py index 142c503b0c..34ed57c33f 100644 --- a/src/mapi/glapi/gen/static_data.py +++ b/src/mapi/glapi/gen/static_data.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# Copyright (C) 2015 Intel Corporation +# Copyright © 2015 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), diff --git a/src/mapi/glapi/gen/typeexpr.py b/src/mapi/glapi/gen/typeexpr.py index af48fee131..9397c941d7 100644 --- a/src/mapi/glapi/gen/typeexpr.py +++ b/src/mapi/glapi/gen/typeexpr.py @@ -1,6 +1,7 @@ #!/usr/bin/env python +# encoding=utf-8 -# (C) Copyright IBM Corporation 2005 +# © Copyright IBM Corporation 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a |