Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文路径导致创建日志文件失败 #37

Closed
sdaereew opened this issue Dec 26, 2024 · 5 comments
Closed

中文路径导致创建日志文件失败 #37

sdaereew opened this issue Dec 26, 2024 · 5 comments
Assignees

Comments

@sdaereew
Copy link

image
以上代码在debug版本能够正确运行,在release版本会出现创建日志失败.
image

@sdaereew
Copy link
Author

Windows 11 64, 版本1.4.7

@pippocao
Copy link
Collaborator

请详细描述一下,中文路径是指您的项目运行路径么?因为我看你的配置里没有中文。看输出猜测您的项目运行在中文路径下。
另外Debug和Release是指您用的bqLog的动态库是Debug或者Release的,还是说您的工程是Debug或者Release的

@sdaereew
Copy link
Author

在中文路径运行. Debug版本连接Debug版本的日志库,release版本连接release版本的日志库.

@pippocao
Copy link
Collaborator

嗯,重现了,是setlocale(LC_ALL, "zh_CN.utf8");的问题,用了这一句之后,确实就出问题了

@pippocao
Copy link
Collaborator

fixed, please see main branch or tag Release 1.4.8

https://github.com/Tencent/BqLog/releases/tag/Release_1.4.8

[v1.4.8] - 2024-12-30
Bug fix: #37, resolving issues with paths exceeding 256 bytes on all platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants