Support Unicode filenames on Windows

As of now, fopenReadStream and fopenWriteStream call fopen(3) which on Windows maps to CreateFileA. This makes it impossible to read or write files whose names include Unicode codepoints not representable in the user's default code page.

Is there any hope of upgrading Leptonica to use Unicode strings, either UTF-8 or UTF-16, for filenames, and to use _wfopen on Windows? To avoid breaking backwards compatibility, each API entry point accepting a filename would need to be duplicated, e.g. as pixReadW, pixWriteW, pixaReadMultipageTiffW.

该提问来源于开源项目:DanBloomberg/leptonica

查看全部
weixin_39903538
weixin_39903538
2020/11/24 13:35
  • 点赞
  • 收藏
  • 回答
    私信

3个回复