[gnome-control-center] info-overview: Replace the trademark symbols in a more generic way



commit 02bbab7b8abf7512c49e8be82c61c0c604677448
Author: Norbert Pfeiler <norbert pfeiler+git gmail com>
Date:   Sat Jan 29 08:09:46 2022 +0100

    info-overview: Replace the trademark symbols in a more generic way

 panels/info-overview/info-cleanup.c | 5 ++---
 tests/info/info-cleanup-test.txt    | 2 ++
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/panels/info-overview/info-cleanup.c b/panels/info-overview/info-cleanup.c
index 10418a5ec..25d957a1d 100644
--- a/panels/info-overview/info-cleanup.c
+++ b/panels/info-overview/info-cleanup.c
@@ -37,9 +37,8 @@ prettify_info (const char *info)
   int   i;
   static const ReplaceStrings rs[] = {
     { "Mesa DRI ", ""},
-    { "Intel[(]R[)]", "Intel\302\256"},
-    { "Core[(]TM[)]", "Core\342\204\242"},
-    { "Atom[(]TM[)]", "Atom\342\204\242"},
+    { "[(]R[)]", "\302\256"},
+    { "[(](tm|TM)[)]", "\342\204\242"},
     { "Gallium \\d+\\.\\d+ on (.*)", "\\1"},
     { " [(][^)]*(DRM|MESA|LLVM)[^)]*[)]?", ""},
     { "Graphics Controller", "Graphics"},
diff --git a/tests/info/info-cleanup-test.txt b/tests/info/info-cleanup-test.txt
index 2f4327977..e8ca5da0f 100644
--- a/tests/info/info-cleanup-test.txt
+++ b/tests/info/info-cleanup-test.txt
@@ -11,3 +11,5 @@ AMD Radeon RX 580 Series (POLARIS10, DRM 3.42.0, 5.15.13-1-ck-generic-v3, LLVM 1
 AMD EPYC 7251 8-Core Processor AMD EPYC 7251 8-Core Processor
 Gallium 0.4 on SVGA3D  SVGA3D
 Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)   llvmpipe
+AMD FX(tm)-8350 Eight-Core Processor   AMD FX™-8350 Eight-Core Processor
+AMD Athlon(tm) II X3 435 Processor     AMD Athlon™ II X3 435 Processor


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]