Swedish characters use a weird encoding. For instance, `file --mime`
just gives `charset=unknown-8bit` and `grep` just says `binary file
matches`.
Searching for them in the [Western Latin character sets comparison
table][] gives that this is the old [Mac OS Roman][] (MIME / IANA:
`macintosh`). Tooling support for this outside of Macs is very poor, as
can be seen above.
[Western Latin character sets comparison table]: https://en.wikipedia.org/wiki/Western_Latin_character_sets_(computing)#Comparison_table
[Mac OS Roman]: https://en.wikipedia.org/wiki/Mac_OS_Roman
To convert:
tmp_file="$(mktemp)"
trap 'rm "$tmp_file"' EXIT
find . -type f -exec file --mime {} + \
| while IFS=':' read file mime
do
if echo "$mime" | grep -qi 'charset=unknown-8bit'
then
iconv -f 'macintosh' -t 'utf-8' "$file" -o "$tmp_file"
mv "$tmp_file" "$file"
fi
done
... | ... |
@@ -25,7 +25,7 @@ |
25 | 25 |
// 120301: Resizable window. Correct vertical window position. |
26 | 26 |
// 120808: Fixed a bug that caused error messages. (Calling finishLaunching twice.) |
27 | 27 |
// 120822: Stencil now uses 8 instead of 32 |
28 |
-// 120905: Two corrections suggested by Marcus Stenb�ck. |
|
28 |
+// 120905: Two corrections suggested by Marcus Stenbäck. |
|
29 | 29 |
// 120913: Added 2-button emulation with CTRL |
30 | 30 |
// 130103: Added [m_context makeCurrentContext]; in all user callbacks. (GL calls had no effect.) |
31 | 31 |
// 130127: Added basic popup menu support |
... | ... |
@@ -411,7 +411,7 @@ NSPoint gMousePosition; |
411 | 411 |
} |
412 | 412 |
} |
413 | 413 |
|
414 |
-// Clone of above, but necessary for supporting the alternative button. Thanks to Marcus Stenb�ck! |
|
414 |
+// Clone of above, but necessary for supporting the alternative button. Thanks to Marcus Stenbäck! |
|
415 | 415 |
-(void) rightMouseDragged:(NSEvent *)theEvent |
416 | 416 |
{ |
417 | 417 |
NSPoint p; |
... | ... |
@@ -752,7 +752,7 @@ void glutInit(int *argcp, char **argv) |
752 | 752 |
pool = [NSAutoreleasePool new]; |
753 | 753 |
myApp = [MGApplication sharedApplication]; |
754 | 754 |
|
755 |
- [NSApp setActivationPolicy: NSApplicationActivationPolicyRegular]; // Thanks to Marcus Stenb�ck |
|
755 |
+ [NSApp setActivationPolicy: NSApplicationActivationPolicyRegular]; // Thanks to Marcus Stenbäck |
|
756 | 756 |
|
757 | 757 |
gRunning = 1; |
758 | 758 |
home(); |
... | ... |
@@ -1147,8 +1147,8 @@ void glutWarpPointer(int x, int y) |
1147 | 1147 |
|
1148 | 1148 |
// Deprecation hell below: |
1149 | 1149 |
//The NSWindow class provides these methods for converting between window local coordinates and screen global coordinates: |
1150 |
-// � convertRectToScreen: |
|
1151 |
-// � convertRectFromScreen: |
|
1150 |
+// • convertRectToScreen: |
|
1151 |
+// • convertRectFromScreen: |
|
1152 | 1152 |
//Use them instead of the deprecated convertBaseToScreen: and convertScreenToBase: methods. |
1153 | 1153 |
NSRect mpmp; |
1154 | 1154 |
mpmp.size.height = 0; |
... | ... |
@@ -1140,7 +1140,7 @@ mat4 ArbRotate(vec3 axis, GLfloat fi) |
1140 | 1140 |
R.m[12] = 0.0; R.m[13] = 0.0; R.m[14] = 0.0; R.m[15] = 1.0; |
1141 | 1141 |
} |
1142 | 1142 |
|
1143 |
- Rt = Transpose(R); // Transpose = Invert -> felet ej i Transpose, och det �r en ortonormal matris |
|
1143 |
+ Rt = Transpose(R); // Transpose = Invert -> felet ej i Transpose, och det är en ortonormal matris |
|
1144 | 1144 |
|
1145 | 1145 |
Raxel = Rx(fi); // Rotate around x axis |
1146 | 1146 |
|