gpt4 book ai didi

c++ - 如何在 linux 中获取本地代码页?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:38:23 25 4
gpt4 key购买 nike

在 Windows 中,我可以使用 GetAPC 函数来获取本地代码页。

但是在Linux中如何获取本地codepage呢?

谢谢。

最佳答案

Linux 不使用代码页标识符。它有 locale标识符,但不同的进程可以有不同的语言环境,并且一个进程可能在 different categories 中使用不同的语言环境立刻。每个 C 程序都以“C”语言环境开始,但可以轻松设置 change to locales specified by the environment .注意 locale names可能因系统而异。

关于c++ - 如何在 linux 中获取本地代码页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45808888/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com