Skip to content

Enhancement: isascii() was deprecated in POSIX.1-2008 and removed in POSIX.1-2024 but we still use it #1384

@xexyl

Description

@xexyl

Is there an existing issue for this?

  • I have searched for existing issues and did not find anything like this

Describe the enhancement

Recently I learnt that the isascii() was deprecated and I just found out it was removed in POSIX.1-2024. I should have known the latter at least and I might have and not worried about it (for what I needed it for but I certainly did not know it was removed in POSIX.1-2024) but we perhaps should get rid of it and instead when doing the is*() or to*() cast to an unsigned char.

I was considering doing this but too many changes are made right now (bug fix and also the copyright date from some hours ago).

Thus I am opening this issue instead for it to be dealt with later on.

Relevant images, screenshots or other files

No response

Relevant links

https://www.gnu.org/software/gnulib/manual/html_node/isascii.html

Anything else?

I have done this in jparse but I have not yet committed it. I want to do a clearer check later on though make prep works.

I'm pretty sure there are other repos that have this unfortunate issue.

Metadata

Metadata

Assignees

Labels

background priorityWhile this issue is needs to be solved, it is of a somewhat lower priority.enhancementNew feature or requestpost-IOCCC29All work and comments delayed until post-IOCCC29 and post IOCCC judge vacation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions