[all-commits] [llvm/llvm-project] c45dd4: [libc++] Fix num_get base parsing (#170460)
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Dec 4 03:55:10 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c45dd4360a4eaaf09014924f8e06b1cd5d0cd034
https://github.com/llvm/llvm-project/commit/c45dd4360a4eaaf09014924f8e06b1cd5d0cd034
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2025-12-04 (Thu, 04 Dec 2025)
Changed paths:
M libcxx/include/__locale_dir/num.h
M libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp
Log Message:
-----------
[libc++] Fix num_get base parsing (#170460)
This fixes two bugs reported in #121795 and adds regression tests.
Specifically, these bugs are in the base detection mechanism. The first
bug is that the out parameter isn't set when the stream only contains
zero and after that is the end of the stream. The second one is that we
don't consider `0` to be a number, and instead we only parse it as the
start of an octal literal.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list