Author Topic: comparing Unicode vs. Text files  (Read 3934 times)

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
comparing Unicode vs. Text files
« on: August 15, 2013, 04:05:26 PM »
I work on a PC but with Unix files across a samba network.
I often need to compare two files, one is an edited version of the other.

When I do the compare I often get an error that says one file is a text file and the other is a unicode file. I have set the encoding for these (.sv files) to "Text" so I expected them to be text files.

Do you have any idea what I might be doing wrong?  (How's that for vague?)

Dave F.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: comparing Unicode vs. Text files
« Reply #1 on: August 15, 2013, 04:10:42 PM »
Either there is a bug, which is possible, or for some reason we think one of the files is Unicode.

What version of SlickEdit are you using?

When you you say compare the files, you mean in DIFFzilla, correct?

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Re: comparing Unicode vs. Text files
« Reply #2 on: August 15, 2013, 04:16:29 PM »
Yes, I'm using Diffzilla. My version is:

SlickEdit 2013 (v18.0.1.1 64-bit)

Serial number: WB944898
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\18\slickedit.lic

Build Date: August 08, 2013
Emulation: CUA

OS: Windows 7 x64
OS Version: 6.01.7601  Service Pack 1
Memory: 39% Load, 3255MB/8149MB Physical, 3303MB/16296MB Page File, 561MB/8388607MB Virtual
Shell Info: C:\Windows\system32\cmd.exe /q
Screen Size: 1280 x 1024, 1280 x 1024

Project Type: Verilog: Model Technology ModelSim
Language: .sv (SystemVerilog)

Installation Directory: C:\Program Files\SlickEditV18.0.1 x64\ (non-removable drive,NTFS,141970MB free)
Configuration Directory: C:\Users\dfechser\Documents\My SlickEdit Config\18.0.1\ (non-removable drive,NTFS,141970MB free)
Spill File: c:\Users\dfechser\Documents\Tools\SlickEdit\Spillfile\$slk.11 (non-removable drive,NTFS,141970MB free)

Thanks,

Dave F.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: comparing Unicode vs. Text files
« Reply #3 on: August 15, 2013, 04:17:24 PM »
You said it happens often, so I'm assuming that means not all the time.  Any rhyme or reason to when you get the message?

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Re: comparing Unicode vs. Text files
« Reply #4 on: August 15, 2013, 04:21:12 PM »
Not so far! It happens about once per week and I run compares almost every day. There are several possible differences between the two files:
1. The files may be on two different Unix disks accessed by different links.
2. One file may be an RO soft link while the other is an RW real file.
3. The obvious - one was edited by Slickedit and the other was not.

I'll start keeping notes of any differences and update this thread when I have more information for you.

Thanks for your help.

Dave F.

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Re: comparing Unicode vs. Text files
« Reply #5 on: August 15, 2013, 05:01:00 PM »
Okay, it just happened again.
Both files are editable .sv files. They are located on different Unix disks, accessed over soft links.
If I use Unix diff I can compare them just  fine.
I tried editing (added a space) and saving the "Unicode" file, then recomparing, but I still see the same dialog message.

Thanks,

Dave F.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: comparing Unicode vs. Text files
« Reply #6 on: August 15, 2013, 05:52:09 PM »
Can you send me the files?

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Re: comparing Unicode vs. Text files
« Reply #7 on: August 15, 2013, 06:47:36 PM »
Oh!

Unfortunately I changed one and deleted the other. The next time that I see this I'll upload the files to here.

Dave F.