Commit c9ea5922e for woocommerce

commit c9ea5922e2fdcdae192fc3e8f3a2b8da218ac85d
Author: Nestor Soriano <konamiman@konamiman.com>
Date:   Thu Jan 14 11:16:42 2021 +0100

    Add a comment to wc_ascii_uasort_comparison explaining why setlocale is needed.

diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php
index a6a38f30f..47d0167b7 100644
--- a/includes/wc-core-functions.php
+++ b/includes/wc-core-functions.php
@@ -1771,6 +1771,8 @@ function wc_uasort_comparison( $a, $b ) {
  * @return int
  */
 function wc_ascii_uasort_comparison( $a, $b ) {
+	// 'setlocale' is required for compatibility with PHP 8.
+	// Without it, 'iconv' will return '?'s instead of transliterated characters.
 	$prev_locale = setlocale( LC_CTYPE, 0 );
 	setlocale( LC_ALL, 'C.UTF-8' );