mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2019-05-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs in rd_import(7) that caused corruption of multi-byte UTF-8 characters.
This commit is contained in:
@@ -96,9 +96,12 @@ int main(int argc,char *argv[])
|
||||
printf("Please enter the File Name that you want to Import ==> ");
|
||||
if (fgets(filename,sizeof(filename),stdin) != NULL)
|
||||
{
|
||||
if((0xFF&filename[strlen(filename)-1])<32) {
|
||||
filename[strlen(filename)-1]=0;
|
||||
}
|
||||
}
|
||||
|
||||
printf("Do you want to Create Cart If Doesn't Exist - (Yes or No) ==> ");
|
||||
printf("Do you want to Create Cart If Doesn't Exist - (Y/N) ==> ");
|
||||
if (fgets(buf,sizeof(buf),stdin) != NULL)
|
||||
{
|
||||
if (( buf[0] != '\n') && (buf[0] =='Y'))
|
||||
|
Reference in New Issue
Block a user