atom / encoding-selector

Pick an encoding for the current editor
MIT License
21 stars 28 forks source link

Uncaught Error: Encoding not recognized: 'windows866' (searched as: 'windows866') #23

Closed rm-code closed 9 years ago

rm-code commented 9 years ago

[Enter steps to reproduce below:]

  1. Select any encoding
  2. Select windows866 encoding

Atom Version: 0.211.0 System: Mac OS X 10.10.3 Thrown From: encoding-selector package, v0.20.0

Stack Trace

Uncaught Error: Encoding not recognized: 'windows866' (searched as: 'windows866')

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/iconv-lite/lib/index.js:102

Error: Encoding not recognized: 'windows866' (searched as: 'windows866')
    at Object.getCodec (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/iconv-lite/lib/index.js:102:23)
    at Object.getDecoder (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/iconv-lite/lib/index.js:118:23)
    at Object.decodeStream (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/iconv-lite/lib/streams.js:15:49)
    at File.module.exports.File.read (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:293:71)
    at TextBuffer.module.exports.TextBuffer.updateCachedDiskContents (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1027:61)
    at TextBuffer.module.exports.TextBuffer.setEncoding (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:323:16)
    at TextEditor.module.exports.TextEditor.setEncoding (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:555:26)
    at EncodingListView.module.exports.EncodingListView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/encoding-selector/lib/encoding-list-view.js:91:28)
    at EncodingListView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at HTMLLIElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)

Commands

     -0:47.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:42.8.0 encoding-selector:show (atom-text-editor.editor)
  2x -0:39.2.0 core:paste (a.inline-block)
  2x -0:36.3.0 encoding-selector:show (atom-text-editor.editor)
     -0:31.1.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:30.9.0 core:paste (atom-text-editor.editor.is-focused)
     -0:29.2.0 core:save (atom-text-editor.editor.is-focused)
     -0:20.7.0 encoding-selector:show (atom-text-editor.editor)
     -0:18.6.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:18.4.0 core:paste (atom-text-editor.editor.is-focused)
     -0:16.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:15.7.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:15.2.0 core:paste (atom-text-editor.editor.is-focused)
     -0:13.4.0 encoding-selector:show (atom-text-editor.editor)
     -0:04.4.0 core:undo (a.inline-block)
     -0:03.6.0 encoding-selector:show (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "base-16-ocean-dark-ui-theme",
      "base16-ocean-dark-syntax-theme"
    ],
    "disabledPackages": [
      "linter-lua"
    ]
  }
}

Installed Packages

# User
base-16-ocean-dark-ui-theme, v1.2.1
base16-ocean-dark-syntax-theme, v0.1.5
file-icons, v1.5.7
git-diff-details, v0.18.0
language-lua, v0.9.3
language-moonscript, v1.7.0
minimap, v4.10.0
minimap-bookmarks, v0.1.0
minimap-git-diff, v4.1.3
project-manager, v1.15.10

# Dev
No dev packages
winstliu commented 9 years ago

/cc @kevinsawicki