本來這個blog是記錄開發輸入法的點滴的,後來越來越雜,現在什麼都記錄了。

2008年9月20日 星期六

dump fat (fat32 only) file system information and modify short filenames

As described in my previous blog (in Chinese), I have written a program in C (in Linux) to modify all short directory names and filenames that is encoded in Big 5 Traditional Chinese to GB Code (Simplified Chinese). This program works for FAT32 file system only and is a good example code to show:

  • how to dump FAT (in fact FAT32 only)  file system
  • how to recursively list all the directory and filenames (both short and long filenames) in a FAT filesystem
  • how to modify the short file names

The source code is based only on:

Example usage:

  •  ./modify_fat /dev/sdb1      dump information of FAT32 file system and recursively lists all files and directory
  • ./modify_fat /dev/sdb1 -m  dump information of FAT32 file system and convert the short filenames from Big 5 to GB format. 

Please find the source code here.

4 則留言:

Unknown 提到...

無意間逛了進來,才來發覺用了一年多的輸入法的開發人原來是香港人。我還一直以為是台灣人呢!

請問一下
1) 現版本(TSF)的歪林是否不支援64bit的外視窗?
試過多種方法,雖能成功在輸入法裡加入了YLam卻無法使其正確在語言列上顯示及執行。

2) 請問從哪個版本開始有根據字頻自動置前的功能?

3) 另外是否有可能提供不同輸入法的字碼而非單一混合碼表?

4) 請問現有程式是否容許enable 了number as code用其他non arrow key selection的方式選字i.e 如fuction keys或shift+number?

5 input.foruto.com的download link似乎用不得,請問是暫時性的,尚或是已不再適用?

6) 可否考慮加入用戶option以del代替esc來reset已輸入的字母?

7) 我在desktop 用英文版vista ultimate x64 無法成功使用IME(as expected) 或TSF輸入法,
laptop上用的是英文xp x64 也只能用IME版,安裝了MS C++ 5.0以後還是無法在notepad上使用輸入法,不知有否已知解決辦法?

感激你的投放與付出,會繼續支持

歪林 提到...

你好。請問你能發電郵給我嘛?
我想找人幫我在 64bit 環境下測試。

近來我又修改了歪林輸入法,用了新的
compiler 編譯,又 fix了一些 bug。

你好像是電腦行業的人,是嘛?

匿名 提到...

Google TV is an application available on select Sony high definition
televisions, Blu-ray Disc players and Logitech's Revue. This software can convert DVD to various video formats such as MPEG-4, AVI, WMV, FLV, 3GP, VOB, etc. A smooth interface, lots of recommendations, and even the new Just for Kids section.

my web page ... apple tv review

匿名 提到...

It's unclear from the report, as well, if Google will offer cellular versions of the tablet immediately (last year the company released a wi-fi-only version months before debuting a 3G version). Check out these top picks from the heavyweights in the tablet industry, Google, Amazon and, of course, Apple. Following features can be adapted for the security of the i - Phone apps: -.

Look at my web-site :: google nexus 7