Ticket #31907

「﨑」の入ったShift-JISファイルが読み込めない

Date d'ouverture: 2013-08-21 15:45 Dernière mise à jour: 2013-08-24 22:12

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Remind
Fichier:
Aucun

Détails

以下、エラーログ。

Error: subscript is out of bounds: 10829 21 August 2013 3:43:53.677 pm

VM: Win32 - Smalltalk Image: Squeak4.4 update: #12327

SecurityManager state: Restricted: false FileAccess: true SocketAccess: true Working Dir D:\squeak4.4-ja\image Trusted Dir D:\squeak4.4-ja\image\tt Untrusted Dir C:\Documents and Settings\tt\My Documents\My Squeak

Array(Object)>>error: Receiver: #(12288 12289 12290 65292 65294 12539 65306 65307 65311 65281 12443 12444 180 65344 168 65...etc... Arguments and temporary variables: aString: 'subscript is out of bounds: 10829' Receiver's instance variables: #(12288 12289 12290 65292 65294 12539 65306 65307 65311 65281 12443 12444 180 65344 168 65...etc... Array(Object)>>errorSubscriptBounds: Receiver: #(12288 12289 12290 65292 65294 12539 65306 65307 65311 65281 12443 12444 180 65344 168 65...etc... Arguments and temporary variables: index: 10829 Receiver's instance variables: #(12288 12289 12290 65292 65294 12539 65306 65307 65311 65281 12443 12444 180 65344 168 65...etc... Array(Object)>>at: Receiver: #(12288 12289 12290 65292 65294 12539 65306 65307 65311 65281 12443 12444 180 65344 168 65...etc... Arguments and temporary variables: index: 10829 Receiver's instance variables: #(12288 12289 12290 65292 65294 12539 65306 65307 65311 65281 12443 12444 180 65344 168 65...etc... Character>>asUnicode Receiver: $

Ticket History (2/2 Histories)

2013-08-21 15:45 Updated by: None
  • New Ticket "「﨑」の入ったShift-JISファイルが読み込めない" created
2013-08-24 22:12 Updated by: umejava
  • Résolution Update from Aucun to Remind
Commentaire

「﨑」はIBM拡張文字に該当します。既存のSqueakではShift JISのデコーダが実装されているものの、CP932に対応したものにはなっていません。(CP932については http://ja.wikipedia.org/wiki/Microsoft%E3%82%B3%E3%83%BC%E3%83%89%E3%83%9A%E3%83%BC%E3%82%B8932 参照)。

対策として

  • 既存のコンバータを拡張してCP932対応にする
  • Squeakからiconv, uconvなど外部の変換ライブラリを使えるようにする

等が考えられますが、対応するにはいずれにせよかなりの工数が必要と思われます。

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion