sort command abort with error

Hello,

I am having an application which has been ported from UNIX. I am facing a problem with sort command. It aborts with following error message when running in a Japanese locale.

sort command aborts with message "A line of the input file contains more than 20480 characters."

This problem has been fixed in Unix and Tru64.

can anybody help me in fixing this problem. I am having source code of sort with me.