HI, all
I want to create a live CD, but find that following problem.
It's problem about UnicodeEncodeError. Right now the terminal's locale
is
zh_CN.UTF-8. How to resolve this problem?
Another problem: I have read rhtslib's code and it's easy to understand.
But as for Medusa and logan is hard to read, do you have any doc for
reference?
Thanks,
Ray
----------------Terminal
Output-----------------------------------------------
[ray@localhost livecd]$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[root@localhost qemu]# livecd-creator
-c /usr/share/doc/livecd-tools-020/livecd-fedora-minimal.ks
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=fedora-minimal-i
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
65536 inodes, 262144 blocks
2621 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
tune2fs 1.41.3 (12-Oct-2008)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/repodata/repomd.xml ...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/repodata/b0bbbe7...
...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/repodata/d1debd9...
...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/Packages/basesys...
...OK
Retrieving
http://ftp.cs.pu.edu.tw/Linux/Fedora/development/i386/os/Packages/rootfil...
...OK
......
Retrieving
ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/development/i386/os/Packages/glibc-common-2.9.90-7.i586.rpm
...OK
Traceback (most recent call last):
File "/usr/share/yum-cli/callback.py", line 196, in callback
UnicodeEncodeError: 'ascii' codec can't encode characters in position
3-6: ordinal not in range(128)
error: python callback <bound method RPMInstallCallback.callback of
<callback.RPMInstallCallback instance at 0x9d119cc>> failed, aborting!