- 论坛徽章:
- 0
|
执行dos2unix命令时得到的错误
网上查了一下,原来是sun的一个bug。
解决办法:
1. 忽略该错误信息
2. 带参数-437
The following is a Sun bug report on the problem. There is no solution
other than the workaround mentioned below.
Bug Id: 3002342
Category: utility
Subcategory: conversion
State: closed
Synopsis: *dos2unix* dos2unix and unix2dos want /dev/kbd
Description:
Both dos2unix and unix2dos print out:
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard type US keyboard assumed
This is a problem because:
1. There is no /dev/kbd.
2. Even if there was a /dev/kbd, these programs are trying to
do the keyboard ioctl KIOCLAYOUT that returns the nationality of the
keyboard. Under x86 the I don't think that the keyboard ioctl
exists, and the keyboards do not have unique gettable numbers that
are the nationality. Some other scheme would be necessary.
Work around:
Ignore the message, or use the intuitive -437 flag.
Integrated in releases:
Duplicate of: 1148242
Patch id:
See also:
Summary: |
|