And this macro would also work for Utf8?
From: Florian Weimer
Sent: Thursday, November 2, 2023 4:54 PM
To: Roger Phillips via Dwarf-discuss
Cc: Roger Phillips
Subject: Re: [Dwarf-discuss] Do Dwarf symbols only use ascii?
* Roger Phillips via Dwarf-discuss:
>
On 11/2/23 03:29, Roger Phillips via Dwarf-discuss wrote:
I'm currently trying to debug a problem in the dynamorio system where
the isdigit function crashes in elftoolchain while trying to parse
symbols from dwarf info:
https://github.com/DynamoRIO/dynamorio/issues/6161
* Roger Phillips via Dwarf-discuss:
> My question is whether these symbols really need the locale
> functionality of libc's isdigit function or if the symbols in Dwarf
> are just standard ascii and could be parsed in a portable way with
> the simple method mentioned there.
I think the current
DWARF strongly recommends UTF-8 in all cases, and there's an attribute on the
compile unit that allows the producer to claim it uses UTF-8. But, whether the
producer actually uses UTF-8 or something else is up to the individual producer
(usually the compiler).
--paulr
From: Dwarf-discuss
On
Greetings,
I'm currently trying to debug a problem in the dynamorio system where the
isdigit function crashes in elftoolchain while trying to parse symbols from
dwarf info:
https://github.com/DynamoRIO/dynamorio/issues/6161
My question is whether these symbols really need the locale