曹梦轩

Results issues of 曹梦轩

如果是win上msvc与qt的环境,msvc和qt会产生编码冲突,也就是msvc采用的编码不是utf8,如果在代码里面,检测到msvc与qt的时候可以加一个utf8的宏。 因为这种编码情况下会让很多字符无法以正常形式读取,比如注释会引发大量的报错。这种情况下,本机是gbk的情况下如果用utf8会无法加载出注释,也就是注释会乱码。如果用别的编码,那么vs工具链无法正常编译。 最关键的是,采用msvc的时候,我们的utf8不含Bom,他会以本地形式加载,会出现编译报错,解决之后呢,控制台调试输出的在某些情况仍有可能出现乱码问题。 这里给出大家一个解决方案,在qt代码里面使用宏来避免我们的编码被改成非utf8形式进行加载。 单文件形式,在每个文件头部添加 ~~ #if _MSC_VER >= 1600 #pragma execution_character_set("utf-8") #endif ~~ 或者在可执行文件主函数文件定义 ~~ #include extern QTextCodec *codec; #define TU codec->toUnicode QTextCodec *codec = QTextCodec::codecForName("utf-8"); ~~ 这种情况下,我们可以实现三种情况同时满足 -...

- Replace deprecated QLayout::setMargin() with setContentsMargins(). - Replace QPalette::Foreground with QPalette::WindowText to adapt to Qt6's QPalette role changes. - Ensure compatibility with both Qt5 and Qt6 to avoid API-related compilation...

This commit modifies the file I/O configuration in miniz_zip.c to automatically enable large file support on Linux systems. The changes include: 1. Added proper Linux platform detection using standard macros:...

## Tier 2 Application: cxxmcp (C++ SDK) **Repository:** https://github.com/caomengxuan666/cxxmcp **Maintainer:** @caomengxuan666 (sole maintainer) **Language:** C++17 **Current version:** v1.1.1 ### Summary cxxmcp is a community-driven C++ SDK implementing the full MCP...

## Description Per [SEP-2243 (HTTP Standard Headers)](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2243-http-standard-headers.md), MCP clients MUST send the following HTTP headers on POST requests: - `Mcp-Method`: Set to the JSON-RPC `method` value from the request body...

enhancement

Summary: - Update the cxxmcp recipe draft to cxxmcp/1.1.6 - Consume the published SDK source release archive and checksum - Keep the default package SDK-only; HTTP, WebSocket, and auth remain...

On Windows, ind -ls currently prints file attribute names such as rchive in the permission column and uses placeholder

When including system headers like `` which define BLOCK_SIZE as a macro (usually 1024), it conflicts with the BLOCK_SIZE constant in concurrentqueue. This causes compilation errors: ``` blockingconcurrentqueue.h:39:29: error: expected...

### Environment - Windows Terminal Preview **1.26.2734.0** (current latest tag), Windows 10 19045 (x64) - Reproduced with PowerShell as the hosted shell, and with our own bash-compatible shell (its line...

Needs-Triage
Needs-Attention
Needs-Tag-Fix

## Bug Report: heap-use-after-free in `httplib::detail::parse_url` ### ASAN Output ``` AddressSanitizer: heap-use-after-free on address 0x51600004a2e8 SUMMARY: AddressSanitizer: heap-use-after-free httplib.h:717:18 in httplib::detail::parse_url(std::__cxx11::basic_string const&, httplib::detail::UrlComponents&) ``` ### Details - **Commit**: `b1cc8095a8feca1b99e296ef78eddd312e80d2c6` (short:...