Activity for 张天师

  • 张天师 张天师 modified a comment on ticket #227

    Processing in wide-byte characters is not a good idea.Now I fix it by totally rewrite it without converting to wide-byte characters,It's in the attachment,have a try:)

  • 张天师 张天师 posted a comment on ticket #227

    Now I fix it by totally rewrite it without converting to wide-byte characters,It's in the attachment,have a try:)

  • 张天师 张天师 modified a comment on ticket #227

    the len variable returned in line 51len = mbstowcs (NULL, path, 0) function is different to the len parameter in line 57 mbstowcs( refpath, path, len) function,the former is about wide byte characters needed, the latter is about multiplebyte characters needed,the original programmer confused them In many places (though in "C" locale they have the same value),so cause the truncation.

  • 张天师 张天师 modified a comment on ticket #227

    the len variable returned in line 51len = mbstowcs (NULL, path, 0) function is different to the len variable in line 57 mbstowcs( refpath, path, len) function,the former is about wide byte characters needed, the latter is about multiplebyte characters needed,the original programmer confused them In many places (though in "C" locale they have the same value),so cause the truncation.

  • 张天师 张天师 modified a comment on ticket #227

    the len variable in line 51len = mbstowcs (NULL, path, 0) is different to the len variable in line 57 mbstowcs( refpath, path, len),the former is about wide byte characters needed, the latter is about multiplebyte characters needed,the original programmer confused them In many places (though in "C" locale they have the same value),so cause the truncation.

  • 张天师 张天师 modified a comment on ticket #227

    the len variable in len = mbstowcs (NULL, path, 0) is different to the len variable in mbstowcs( refpath, path, len),the former is about wide byte characters needed, the latter is about multiplebyte characters needed,the original programmer confused them(though in "C" locale they have the same value),so cause the truncation.

  • 张天师 张天师 modified a comment on ticket #227

    the len variable in len = mbstowcs (NULL, path, 0) is different to the len variable in mbstowcs( refpath, path, len),former is about wide byte characters needed,latter is about multiplebyte characters needed,the original programmer confused them(though in "C" locale they have the same value),so cause the truncation.

  • 张天师 张天师 posted a comment on ticket #227

    the len variable in len = mbstowcs (NULL, path, 0) is different to the len variable in mbstowcs( refpath, path, len),former is about wide byte characters needed,latter is about multiplebyte characters needed,the original programmer confused them,so cause the truncation.

  • 张天师 张天师 modified a comment on ticket #227

    setlocale (LC_CTYPE, ""); this function in dirname.c or basename.c set the current locale to value returned by GetACP(). And remove this line is the temp solution to the BUG.The dirname() and basename() works well in "C" locale.

  • 张天师 张天师 modified a comment on ticket #227

    setlocale (LC_CTYPE, ""); this function in dirname.c or basename.c set the current locale to value returned by GetACP(). And remove this line is the temp solution to the BUG.the dirname() and basename() works well in "C" locale.

  • 张天师 张天师 posted a comment on ticket #227

    setlocale (LC_CTYPE, ""); this function in dirname.c or basename.c set the current locale to value returned by GetACP(). And remove this line is the temp solution to the BUG.the dirname() and basename() works will in "C" locale.

1
MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →