Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

fetch-contributor-data: Normalize names to NFC.

Anders Kaseorg9406c21340b6
diff --git a/tools/fetch-contributor-data b/tools/fetch-contributor-data
index 4ce57602551..105e0b5c28d 100755
--- a/tools/fetch-contributor-data
+++ b/tools/fetch-contributor-data
@@ -8,6 +8,7 @@ import json
import logging
import os
import sys
+import unicodedata
from datetime import date
from random import randrange
from time import sleep
@@ -141,7 +142,9 @@ def update_contributor_data_file() -> None:
name = contributor.get("name")
if name is not None:
- contributor_username_to_data[username]["name"] = name
+ contributor_username_to_data[username]["name"] = unicodedata.normalize(
+ "NFC", name
+ )
# remove duplicate contributions count
# find commits at the time of split and subtract from zulip-server