digital 千里眼 @abp_jp

アナログな日常とデジタルの接点

Cygwin 1.7.2 にバージョンアップ(sort でエラー)

完全に自分用のメモです

3/24 Cygwin1.7.2 にバージョンアップ -> 今まで動いていたスクリプトが sort でエラー...orz

そのエラーメッセージがこれ

/usr/bin/sort: 文字列の比較に失敗: Invalid or incomplete multibyte or wide character
/usr/bin/sort: 問題を回避するために LC_ALL='C' を指定してください.
/usr/bin/sort: 比較した文字列は `061.152.093.254 - 061.152.093.254 , 000 , fake servers\r' と `061.152.093.254 - 061.152.093.254 , 090 , [FK]サェモ\357P2Pヤエカッチヲ\r' です.
  • 上記の文字化けはコメント部分で中国語だった
  • コメント部は重要じゃないので、エラーメッセージ通りにロケールを考慮しない設定「LC_ALL='C'」に変更し問題を回避
参考までに Cygwin のアナウンス を見ると...
Changes and bugfixes since Cygwin 1.7.1:
========================================

Changes:
--------

- Localization support has been much improved.
  - Cygwin now handles locales using the underlying Windows locale
    support.  The locale must exist in Windows to be recognized.  Locale
    aliases from the file /usr/share/locale/locale.alias are also
    allowed, as long as their replacement is supported by the underlying
    Windows.

⇑ たぶんこれ ⇑

今も Cygwin は進化し続けてるんですね(ChangeLog 確認面倒...)