Click here to Skip to main content
15,893,814 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC 02-11-2021 Pin
OriginalGriff1-Nov-21 22:41
mveOriginalGriff1-Nov-21 22:41 
GeneralRe: CCC 02-11-2021 Pin
pkfox1-Nov-21 22:44
professionalpkfox1-Nov-21 22:44 
GeneralRe: CCC 02-11-2021 Pin
OriginalGriff1-Nov-21 23:43
mveOriginalGriff1-Nov-21 23:43 
GeneralRe: CCC 02-11-2021 Pin
pkfox1-Nov-21 23:49
professionalpkfox1-Nov-21 23:49 
GeneralRe: CCC 02-11-2021 Pin
OriginalGriff2-Nov-21 0:21
mveOriginalGriff2-Nov-21 0:21 
GeneralRe: CCC 02-11-2021 Pin
OriginalGriff2-Nov-21 0:20
mveOriginalGriff2-Nov-21 0:20 
GeneralRe: CCC 02-11-2021 Pin
pkfox2-Nov-21 0:34
professionalpkfox2-Nov-21 0:34 
RantTFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch1-Nov-21 12:49
mvahoney the codewitch1-Nov-21 12:49 
So I'm using visual studio and it seems to randomly replace spaces in my text with character 160 when i do clipboard operations with it. Not all the time, mind you, but I haven't figured out exactly what happens to make it do that yet.

Normally, I wouldn't care. Whitespace is whitespace, and it's all unicode right?

Well no. SQL's parser does not accept character 160 as whitespace. Worse, it gives you weird errors around it.

For example:
SQL
SET @cc = CASE @ch WHEN 9 THEN (((@cc - 1) / @tabWidth) + 1) * @tabWidth + 1 WHEN 10 THEN 1 WHEN 13 THEN 1 ELSE @cc END


This said I needed to declare the variable '@ch'

The real issue was that variable was surrounded by char# 160's

Mad | :mad:

Do they not dogfood their tools? How am I the first person to run into this?
Real programmers use butterflies

GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Rick York1-Nov-21 12:59
mveRick York1-Nov-21 12:59 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch1-Nov-21 13:05
mvahoney the codewitch1-Nov-21 13:05 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Gary Wheeler3-Nov-21 2:17
Gary Wheeler3-Nov-21 2:17 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Ravi Bhavnani1-Nov-21 13:06
professionalRavi Bhavnani1-Nov-21 13:06 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch1-Nov-21 13:06
mvahoney the codewitch1-Nov-21 13:06 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
markchagers2-Nov-21 22:18
markchagers2-Nov-21 22:18 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Brisingr Aerowing1-Nov-21 15:17
professionalBrisingr Aerowing1-Nov-21 15:17 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch1-Nov-21 15:45
mvahoney the codewitch1-Nov-21 15:45 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Brisingr Aerowing1-Nov-21 16:13
professionalBrisingr Aerowing1-Nov-21 16:13 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Randor 1-Nov-21 15:35
professional Randor 1-Nov-21 15:35 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch1-Nov-21 15:45
mvahoney the codewitch1-Nov-21 15:45 
QuestionRe: TFW Microsoft's own tools don't like to work with their tools Pin
Randor 1-Nov-21 16:09
professional Randor 1-Nov-21 16:09 
AnswerRe: TFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch1-Nov-21 16:14
mvahoney the codewitch1-Nov-21 16:14 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Randor 1-Nov-21 16:36
professional Randor 1-Nov-21 16:36 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Jörgen Andersson2-Nov-21 1:56
professionalJörgen Andersson2-Nov-21 1:56 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
honey the codewitch2-Nov-21 6:56
mvahoney the codewitch2-Nov-21 6:56 
GeneralRe: TFW Microsoft's own tools don't like to work with their tools Pin
Jörgen Andersson2-Nov-21 11:03
professionalJörgen Andersson2-Nov-21 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.