Reply to this topic Topic Options
2 Pages V   [1] 2 ... Next
Discovered bug in 7 clipboard, also affects all other versions of windows
iguanas
Post #1 May 9 2009, 15:22


Neowinian
Group Icon

Group: Registered
Posts: 23
Joined: 24-November 03
Member No.: 41,121
This is maybe a bug, maybe not, but I think that this behavior should not happen at all, and in some ways gives you another perspective of how clipboard works.

Explanation

yesterday i was woking with some servers and copy a command to paste in a brand new txt file.
the command was \\192.168.1.1\c$
i selected the command and pressed ctrl-C
i right click desktop and created a new text file, but by error i pressed ctrl-V in the name of the txt file
Windows pasted 192.168.1.1c$ and told me that some characters will not do in a filename.
i pressed esc to get the original filename
opened the file name and pasted the clipboard content.
Now, what i pasted was 192.168.1.1c, so MY clipboard content was modified by windows.
I mean instead of modyfing the file name to remove the characters, windows modified my clipboard.
Profile Card PM + Reply to Post Go to the top of the page Email Poster

Log In or Register · Advertise on Neowin
janek2012
Post #2 May 9 2009, 15:27


Neowinian
Group Icon

Group: Registered
Posts: 5
Joined: 14-January 09
Member No.: 278,136
Wow, nice find!

Checked on 7100 x64 - this bug is alive biggrin.gif
Profile Card PM + Reply to Post Go to the top of the page
jswalker2
Post #3 May 9 2009, 15:34


Neowinian
Group Icon

Group: Registered
Posts: 88
Joined: 9-March 04
Member No.: 49,774
This happens in windows vista as well as you noted, but still a nice find smile.gif
Profile Card PM + Reply to Post Go to the top of the page Email Poster
iguanas
Post #4 May 9 2009, 15:36


Neowinian
Group Icon

Group: Registered
Posts: 23
Joined: 24-November 03
Member No.: 41,121
Well, if anyone can report it, do it, i don't want any credit, only a more stable and coherent OS.
I will be using it for years to come.
BTW i found the "bug" in a 2003 remote terminal i was working on, so i opened my 7VM and tried it there. still alive as janek said.
That makes me think about how really clipboard works.
Profile Card PM + Reply to Post Go to the top of the page Email Poster
+Admiral Michael
Post #5 May 9 2009, 15:38


Resident Fanatic
Group Icon
Group Icon

Group: +Subscriber
Posts: 524
Joined: 27-November 05
From: Hamilton, Ontario
Member No.: 143,134
This is odd. I tried the same thing in Windows XP and I get 192.168.1.1c$.

Altho when pasting the result in other places it's giving me random results, like in this reply I'm getting 192.168.1.1c$ but in MS Word I'm getting \\192.168.1.1\c$.

This is odd.
Profile Card PM + Reply to Post Go to the top of the page
Patchou
Post #6 May 9 2009, 15:43


NeowinianČ
Group Icon

Group: Registered
Posts: 183
Joined: 9-July 03
Member No.: 32,405
Nice catch! I confirm this bug happens in Vista SP2 also.
Profile Card PM + Reply to Post Go to the top of the page Email Poster
Hani
Post #7 May 9 2009, 15:50


Neowinian Senior
Group Icon

Group: Registered
Posts: 2,615
Joined: 14-September 04
Member No.: 71,595
nice find! it also happens in Vista SP1.
The bug happens when renaming a file by copying+pasting an invalid file name. Windows removes the invalid characters from the file name in clipboard.
Profile Card PM + Reply to Post Go to the top of the page Email Poster
iguanas
Post #8 May 9 2009, 16:00


Neowinian
Group Icon

Group: Registered
Posts: 23
Joined: 24-November 03
Member No.: 41,121
Also happens in XP. (My main OS at work(and as mike said)) and 2000. Maybe is one of a bunch of legacy windows bugs. who knows...

In another topic...
Also is nice (very nice and feels good) to find many other users like me, that have been around for years and years, and only make posts in forums to talk of meaningful things tongue.gif
Best regards
Profile Card PM + Reply to Post Go to the top of the page Email Poster
d.jukes
Post #9 May 9 2009, 18:59


Neowinian
Group Icon

Group: Registered
Posts: 54
Joined: 5-October 05
Member No.: 133,195
This is not the clipboard changing. It is the destination server taking out the illeagal characters for a file name. If you paste it into the new text file on the destination server it will be what you copied. If you paste it into a text file on the source machine it will be what you copied. Been there since vista at least.
Dave.
Profile Card PM + Reply to Post Go to the top of the page
Lord Ba'al
Post #10 May 11 2009, 01:46


Brain user
Group Icon

Group: Registered
Posts: 2,444
Joined: 10-January 09
From: EU
Member No.: 276,924
Now that's an odd bug.
Profile Card PM + Reply to Post Go to the top of the page
GreyWolfSC
Post #11 May 11 2009, 02:46


Resident Boiled Cabbage
Group Icon
Group Icon

Group: Moderator
Posts: 6,404
Joined: 2-August 06
From: Greenville, SC
Member No.: 175,510
Quote - (d.jukes @ May 9 2009, 14:59) *
This is not the clipboard changing. It is the destination server taking out the illeagal characters for a file name. If you paste it into the new text file on the destination server it will be what you copied. If you paste it into a text file on the source machine it will be what you copied. Been there since vista at least.
Dave.


It's definitely changing the clipboard data. Pasting "\\192.168.1.1\c$" into a filename removes the invalid characters. Opening notepad and pasting immediately after resulted in the modified data being pasted into the text file: "192.168.1.1c$"
Profile Card PM + Reply to Post Go to the top of the page
EchoNoise
Post #12 May 11 2009, 02:55


Destron.
Group Icon

Group: Registered
Posts: 3,901
Joined: 20-December 05
From: Australia
Member No.: 146,074
This has always been a bug, it's actually intentional.

Remember the /con/con bug of Win98? Microsoft fixed that, and in turn got rid of backslashes in actual filenames/folders to stop this bug.

You can actually create a folder called "\\192.168.1.1\c$" but my guess is that you have to create it within another OS.

I haven't tried that myself, but it may not be possible because of changes to the FAT32 and NTFS filesystems.
Profile Card PM + Reply to Post Go to the top of the page
iguanas
Post #13 May 11 2009, 14:31


Neowinian
Group Icon

Group: Registered
Posts: 23
Joined: 24-November 03
Member No.: 41,121
it definitively modifies your clipboard data...
The \\whathever\ was an example only of how i found the data was being modified.
Profile Card PM + Reply to Post Go to the top of the page Email Poster
+SOOPRcow
Post #14 May 11 2009, 14:35


Neowinian
Group Icon
Group Icon

Group: +SubscriberČ
Posts: 849
Joined: 18-April 02
From: San Diego, CA USA
Member No.: 11,804
http://www.bluemars.org/clipx/ - Best clipboard tool ever smile.gif
Profile Card PM + Reply to Post Go to the top of the page Email Poster
rakeshishere
Post #15 May 11 2009, 22:55


Resident Fanatic
Group Icon

Group: Registered
Posts: 891
Joined: 14-January 09
From: India
Member No.: 278,068
Quote - (SOOPRcow @ May 11 2009, 21:05) *
http://www.bluemars.org/clipx/ - Best clipboard tool ever smile.gif


I use Ditto
http://ditto-cp.sourceforge.net/
Profile Card PM + Reply to Post Go to the top of the page
« Older · Windows 7 Beta · Newer »
2 Pages V   [1] 2 ... Next  Reply to this topic