https://bugs.kde.org/show_bug.cgi?id=444614

--- Comment #5 from Ahmad Samir <a.samir...@gmail.com> ---
Git commit 241e0cfa96b1491721f361f1713b3514c58bde56 by Ahmad Samir.
Committed on 05/09/2022 at 17:12.
Pushed by ahmadsamir into branch 'master'.

KCatalog: make setting LANGUAGE env var more robust

- Use std::snprintf, since its docs state the resulting string will be
  null-terminated; also check the return value from that call to
  print warnings
- Bump the size of the allocated char array to 64

Add rudimentary unittest adapted from kcountrytest.cpp.

M  +7    -3    autotests/CMakeLists.txt
A  +50   -0    autotests/kcatalogtest.cpp     [License: LGPL(v2.0+)]
M  +17   -6    src/i18n/kcatalog.cpp

https://invent.kde.org/frameworks/ki18n/commit/241e0cfa96b1491721f361f1713b3514c58bde56

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to