Skip to content

Fix counter_suffix.data corruption on Windows Bazel build #1252

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

yukawa
Copy link
Collaborator

@yukawa yukawa commented Apr 7, 2025

Description

Many dictionary-related scripts assume dictionary files including generated ones have LF as the line ending. Without this change, counter_suffix.data will not be created as expected only on Windows Bazel build, which is why NumberRewriter::RewriteOneSegment does not work here.

Closes #1251.

Issue IDs

Steps to test new behaviors (if any)

  • OS: Windows 11 24H2
  • Steps:
    1. Build Mozc64.msi with Bazel and install it.
    2. Confirm '1本' is included in the candidate list of 'いっぽん'

Many dictionary-related scripts assume dictionary files including
generated ones have LF as the line ending. Without this change,
'counter_suffix.data' will not be created as expected only on Windows
Bazel build, which is why 'NumberRewriter::RewriteOneSegment' does not
work here.

Closes google#1251.
@hiroyuki-komatsu hiroyuki-komatsu merged commit d03da07 into google:master Apr 10, 2025
1 check passed
@hiroyuki-komatsu
Copy link
Collaborator

We have merged your PR.
Thank you for the contribution!

@yukawa yukawa deleted the issue_1251 branch April 10, 2025 08:59
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.

Conversion candidates for 'いっぽん' do not contain '1本' only when built with Bazel on Windows
2 participants