Bmax134 - Upper/Lower function on UFT string
Archives Forums/BlitzMax Bug Reports/Bmax134 - Upper/Lower function on UFT string| 
 | ||
| Create a folder/filename with non-ascii characters on it like in my example below. The function LOWER causes the lost of non-ascii character (Upper() seems to work perfect in this case - but see example 2) Local path:String="D:\_BlitzMax\___Premi\contabilità\textfile.txt" Print path path=Lower(path)' this causes the lost of a character! Print "Path Lower <"+path+">" Local newname:String=Replace(path,".txt",".text") Print newname with the following output Executing:untitled1.debug.exe D:\_BlitzMax\___Premi\contabilità\textfile.txt Path Lower <d:\_blitzmax\___premi\contabilit\textfile.txt> d:\_blitzmax\___premi\contabilit\textfile.text <---- note the 'missing à' Example 2 - strange character and Upper function 
Print Upper("Ÿ-̉-Ÿ-̉") 
prints out --- Tested on Win XP Pro sp2, Bmax 1.34 + MaxGUI 1.34 | 
| 
 | ||
| there is also bug in Upper command: 
For i = 0 To 255
	Print "Chr("+i+")=~t"+ Chr(i)+"~tLower="+Lower(Chr(i) ) + "~tUpper=" + Upper(Chr(i) ) + "~tUpper+Lower=" + Lower(Upper(Chr(i) ) )
Next
 | 
| 
 | ||
| Confirmed on Mac OS X 10.5. | 
| 
 | ||
| Hi, Fixed for next update! (Apologies for the sad lack of testing on that one...) |