Skip to content

Conversation

@jaccz
Copy link
Member

@jaccz jaccz commented Jan 12, 2026

No description provided.

Copilot AI and others added 5 commits May 19, 2025 17:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for Double-Byte Character Set (DBCS) characters, particularly Japanese Kanji, in parameter names and constraints. The implementation includes locale handling improvements and a refactored number parsing mechanism to properly handle multibyte characters.

Changes:

  • Added locale configuration with UTF-8 support and fallback handling in the main entry point and file I/O operations
  • Refactored number parsing from wistringstream to std::stod for better DBCS compatibility
  • Fixed a bug where results weren't cleared before generation, preventing duplicate entries
  • Added test coverage for Japanese Kanji characters in parameters and constraints

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/bug/bug024.txt New test file with Japanese Kanji characters in parameter names and constraint expressions
test/bug/.tests Added test case for bug024.txt
cli/pict.cpp Added locale initialization with UTF-8 support and fallback to classic locale
cli/mparser.cpp Applied locale imbuing to file input streams for proper character decoding
cli/ctokenizer.cpp Refactored number parsing to use std::stod instead of wistringstream for DBCS compatibility
api/model.cpp Added results clearing before generation to prevent duplicates
.gitignore Added .vscode/settings.json to ignored files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jaccz jaccz merged commit 17e1f55 into main Jan 13, 2026
16 checks passed
takeyaqa added a commit to takeyaqa/pict-wasm that referenced this pull request Jan 25, 2026
* Fix PictGenerate to clear previous results before generating new ones (microsoft#134)

* Initial plan for issue

* Fix PictGenerate to clear previous results before generating new ones

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Fix PictGenerate to clear previous results and update .gitignore

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Remove libpict.so binary and revert .gitignore changes

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Adding handing for DBCS characters (microsoft#140)

* Initial plan for issue

* Fix PictGenerate to clear previous results before generating new ones

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Fix PictGenerate to clear previous results and update .gitignore

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Remove libpict.so binary and revert .gitignore changes

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Fix Unicode handling and add test for Japanese Kanji characters

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Add comprehensive development guidelines for the PICT repository

* chore: resolve conflict

* chore: resolve conflict

* Revert "chore: resolve conflict"

This reverts commit 3087955.

* Revert "chore: resolve conflict"

This reverts commit 3870bb6.

* chore: remove copilot instructions document

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>
Co-authored-by: Jacek Czerwonka <jacekcz@microsoft.com>
takeyaqa added a commit to takeyaqa/pict-wasm that referenced this pull request Jan 25, 2026
* Fix PictGenerate to clear previous results before generating new ones (microsoft#134)

* Initial plan for issue

* Fix PictGenerate to clear previous results before generating new ones

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Fix PictGenerate to clear previous results and update .gitignore

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Remove libpict.so binary and revert .gitignore changes

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Adding handing for DBCS characters (microsoft#140)

* Initial plan for issue

* Fix PictGenerate to clear previous results before generating new ones

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Fix PictGenerate to clear previous results and update .gitignore

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Remove libpict.so binary and revert .gitignore changes

Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>

* Fix Unicode handling and add test for Japanese Kanji characters

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Add comprehensive development guidelines for the PICT repository

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jaccz <9115223+jaccz@users.noreply.github.com>
Co-authored-by: Jacek Czerwonka <jacekcz@microsoft.com>
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

Successfully merging this pull request may close these issues.

2 participants