Dictionary writes UNICODE but does not read correctly.
まだ誰も着手していません。
評価
調査の方向性
参照されているSimpleITK issueと、メタデータ文字列を読み書きするMetaIOコードから始めます。サンプルヘッダーを使って、特にtest1とtest2の値について不一致を再現し、その後、同じUnicodeメタデータを書き込んで読み込んだときに元の文字列が保持されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
This issue is first reported here: SimpleITK/SimpleITK#2082
It appears that MetaIO does not sanitize the input to write from UNICODE, and can write some UNICODE strings. However, MetaIO is not able to read the same UNICODE string it has written.
Example output from above:
Expected equality of these values:
img2.GetMetaData("test2")
Which is: "des caract\xC3\xA8res sp\xC3\xA9" "ci"
As Text: "des caractères spéci"
value2
Which is: "des caract\xC3\xA8res sp\xC3\xA9" "ci\xC3\xB6"
As Text: "des caractères spéciö"
The Sample header file:
ObjectType = Image
NDims = 3
BinaryData = True
BinaryDataByteOrderMSB = False
CompressedData = False
TransformMatrix = 1 0 0 0 1 0 0 0 1
Offset = 0 0 0
CenterOfRotation = 0 0 0
AnatomicalOrientation = RAI
ElementSpacing = 1 1 1
test1 = des caractères spéciaux
test2 = des caractères spéciö
DimSize = 2 2 2
ElementType = MET_DOUBLE
ElementDataFile = LOCAL
- 主要言語
- C
- スター
- 32
- フォーク
- 26
- 平均マージ
- 2時間 40分
- マージ済み PR(30日)
- 4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Kitware/MetaIO のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 32/100
-
Update CI オープン
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bradcypert/plum#53 ·
-
Component: GLib
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Status: Opened
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
nextbsd/nextbsd-userland#285 ·