[committed] contrib: Add DerivedGeneralCategory.txt to comment in libstdc++ script
Daniel Krügler
daniel.kruegler@gmail.com
Tue Sep 23 04:54:16 GMT 2025
Am Mo., 22. Sept. 2025 um 19:23 Uhr schrieb Jonathan Wakely <
jwakely@redhat.com>:
> contrib/ChangeLog:
>
> * unicode/gen_libstdcxx_unicode_data.py: Update comment at the
> top of the file to mention DerivedGeneralCategory.txt
> prerequisite.
> ---
>
> Pushed to trunk.
>
> contrib/unicode/gen_libstdcxx_unicode_data.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/unicode/gen_libstdcxx_unicode_data.py
> b/contrib/unicode/gen_libstdcxx_unicode_data.py
> index c50884d91dea..d8ebe71d6a01 100755
> --- a/contrib/unicode/gen_libstdcxx_unicode_data.py
> +++ b/contrib/unicode/gen_libstdcxx_unicode_data.py
> @@ -23,6 +23,7 @@
> # ftp://ftp.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt
> #
> ftp://ftp.unicode.org/Public/UNIDATA/auxiliary/GraphemeBreakProperty.txt
> # ftp://ftp.unicode.org/Public/UNIDATA/emoji/emoji-data.txt
> +#
> ftp://ftp.unicode.org/Public/UNIDATA/extracted/DerivedGeneralCategory.txt
> # Then run this script and save the output to
> # ../../libstdc++-v3/include/bits/unicode-data.h
>
> @@ -148,7 +149,7 @@ escaped_general_categories = {
> "Cc", "Cf", "Cs", "Co", "Cn",
> }
>
> -# Extract General_Category and detrmine if it should be escaped
> +# Extract General_Category and detrmine if it should be escaped
>
Should the typo "detrmine" be corrected as drive-by fix?
- Daniel
> # for all code points.
> for line in open("DerivedGeneralCategory.txt", "r"):
> # Example lines:
> --
> 2.51.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250923/3d9a3389/attachment-0001.htm>
More information about the Libstdc++
mailing list