From: Kenneth Graunke Date: Thu, 22 Aug 2019 20:29:31 +0000 (-0700) Subject: intel/genxml: Stop manually scrubbing 'α' -> "alpha" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8489206e9da02bfa3a69f44b2f9a516ba7d1fdee;p=mesa.git intel/genxml: Stop manually scrubbing 'α' -> "alpha" 'α' has never appeared in any genxml files, so there's no need to replace it with the word "alpha". Reviewed-by: Jordan Justen --- diff --git a/src/intel/genxml/gen_bits_header.py b/src/intel/genxml/gen_bits_header.py index 38e9a6c74f1..3b0f9ab2f3f 100644 --- a/src/intel/genxml/gen_bits_header.py +++ b/src/intel/genxml/gen_bits_header.py @@ -135,7 +135,7 @@ ${emit_per_gen_prop_func(field, 'start')} alphanum_nono = re.compile(r'[ /\[\]()\-:.,=>#&*"+\\]+') def to_alphanum(name): global alphanum_nono - return alphanum_nono.sub('', name).replace('α', 'alpha') + return alphanum_nono.sub('', name) def safe_name(name): name = to_alphanum(name) diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py index f76ad325f03..118cc6330af 100644 --- a/src/intel/genxml/gen_pack_header.py +++ b/src/intel/genxml/gen_pack_header.py @@ -197,7 +197,6 @@ def to_alphanum(name): '=': '', '>': '', '#': '', - 'α': 'alpha', '&': '', '*': '', '"': '',